MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / IsSelection

Method IsSelection

query.go:34–39  ·  view source on GitHub ↗

IsSelection checks the current matched set of elements against a Selection object and returns true if at least one of these elements matches.

(sel *Selection)

Source from the content-addressed store, hash-verified

32// IsSelection checks the current matched set of elements against a Selection object
33// and returns true if at least one of these elements matches.
34func (s *Selection) IsSelection(sel *Selection) bool {
35 if sel == nil {
36 return false
37 }
38 return s.IsNodes(sel.Nodes...)
39}
40
41// IsNodes checks the current matched set of elements against the specified nodes
42// and returns true if at least one of these elements matches.

Callers 3

BenchmarkIsSelectionFunction · 0.80
TestIsSelectionFunction · 0.80
TestIsSelectionNotFunction · 0.80

Calls 1

IsNodesMethod · 0.95

Tested by 3

BenchmarkIsSelectionFunction · 0.64
TestIsSelectionFunction · 0.64
TestIsSelectionNotFunction · 0.64