MCPcopy
hub / github.com/dgraph-io/dgraph / popAssert

Method popAssert

dql/parser.go:1539–1544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1537func (s *filterTreeStack) push(t *FilterTree) { s.a = append(s.a, t) }
1538
1539func (s *filterTreeStack) popAssert() *FilterTree {
1540 x.AssertTrue(!s.empty())
1541 last := s.a[len(s.a)-1]
1542 s.a = s.a[:len(s.a)-1]
1543 return last
1544}
1545
1546func (s *filterTreeStack) pop() (*FilterTree, error) {
1547 if s.empty() {

Callers 1

evalStackFunction · 0.45

Calls 2

emptyMethod · 0.95
AssertTrueFunction · 0.92

Tested by

no test coverage detected