wip
This commit is contained in:
21
broker/broker_test.go
Normal file
21
broker/broker_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package broker
|
||||
|
||||
import (
|
||||
"local/storage"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDoCookies(t *testing.T) {
|
||||
// func _setCookies(db storage.DB, host string, cookies []*http.Cookie) error {
|
||||
// func _getCookies(db storage.DB, host string) cookies, error {
|
||||
db := storage.NewMap()
|
||||
host := "host"
|
||||
|
||||
if cookies, err := _getCookies(db, host); err == nil {
|
||||
t.Fatal(err)
|
||||
} else if len(cookies) != 0 {
|
||||
t.Fatal(cookies)
|
||||
}
|
||||
|
||||
t.Fatal("not impl")
|
||||
}
|
||||
Reference in New Issue
Block a user