MCPcopy Create free account
hub / github.com/andybalholm/cascadia / loadValidSelectors

Function loadValidSelectors

w3_test.go:60–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

58}
59
60func loadValidSelectors(t *testing.T) []validSelector {
61 c, err := ioutil.ReadFile("test_resources/valid_selectors.json")
62 if err != nil {
63 t.Fatal(err)
64 }
65 var tests []validSelector
66 if err = json.Unmarshal(c, &tests); err != nil {
67 t.Fatal(err)
68 }
69 return tests
70}
71
72func TestValidSelectors(t *testing.T) {
73 tests := loadValidSelectors(t)

Callers 2

TestSerializeFunction · 0.85
TestValidSelectorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected