MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestQueryToLowerMap

Function TestQueryToLowerMap

internal/home/client_test.go:500–515  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

498}
499
500func TestQueryToLowerMap(t *testing.T) {
501 got := queryToLowerMap(url.Values{
502 "Key": {"v1", "v2"},
503 "Token": {"abc"},
504 })
505 if got["key"] != "v1, v2" {
506 t.Fatalf("key = %q, want %q", got["key"], "v1, v2")
507 }
508 if got["token"] != "abc" {
509 t.Fatalf("token = %q, want %q", got["token"], "abc")
510 }
511
512 if nilMap := queryToLowerMap(nil); nilMap != nil {
513 t.Fatalf("queryToLowerMap(nil) = %v, want nil", nilMap)
514 }
515}

Callers

nothing calls this directly

Calls 1

queryToLowerMapFunction · 0.85

Tested by

no test coverage detected