MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / compareMaps

Function compareMaps

pkg/vdom/cssparser/cssparser_test.go:12–22  ·  view source on GitHub ↗
(a, b map[string]string)

Source from the content-addressed store, hash-verified

10)
11
12func compareMaps(a, b map[string]string) error {
13 if len(a) != len(b) {
14 return fmt.Errorf("map length mismatch: %d != %d", len(a), len(b))
15 }
16 for k, v := range a {
17 if b[k] != v {
18 return fmt.Errorf("value mismatch for key %s: %q != %q", k, v, b[k])
19 }
20 }
21 return nil
22}
23
24func TestParse1(t *testing.T) {
25 style := `background: url("example;with;semicolons.jpg"); color: red; margin-right: 5px; content: "hello;world";`

Callers 1

TestParse1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected