This commit is contained in:
bel
2022-01-27 10:38:41 -07:00
parent a127d9fd25
commit 60c88375ad
2 changed files with 77 additions and 1 deletions

21
broker/broker_test.go Normal file
View 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")
}