MCPcopy
hub / github.com/PuerkitoBio/goquery / assertSelectionIs

Function assertSelectionIs

type_test.go:91–97  ·  view source on GitHub ↗
(t *testing.T, sel *Selection, is ...string)

Source from the content-addressed store, hash-verified

89}
90
91func assertSelectionIs(t *testing.T, sel *Selection, is ...string) {
92 for i := 0; i < sel.Length(); i++ {
93 if !sel.Eq(i).Is(is[i]) {
94 t.Errorf("Expected node %d to be %s, found %+v", i, is[i], sel.Get(i))
95 }
96 }
97}
98
99func printSel(t *testing.T, sel *Selection) {
100 if testing.Verbose() {

Callers 15

TestReplaceWithSelectionFunction · 0.85
TestParentsOrderFunction · 0.85
TestPrevAllOrderFunction · 0.85
TestNextUntilFunction · 0.85
TestNextUntil2Function · 0.85
TestNextUntilOrderFunction · 0.85
TestNextUntilSelectionFunction · 0.85
TestNextUntilNodesFunction · 0.85
TestPrevUntilFunction · 0.85
TestPrevUntil2Function · 0.85
TestPrevUntilOrderFunction · 0.85
TestPrevUntilSelectionFunction · 0.85

Calls 4

LengthMethod · 0.80
IsMethod · 0.80
EqMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…