MCPcopy Create free account
hub / github.com/google/gapid / assert

Method assert

gapil/bapi/encode.go:479–488  ·  view source on GitHub ↗
(n *semantic.Assert)

Source from the content-addressed store, hash-verified

477}
478
479func (e *encoder) assert(n *semantic.Assert) (outID uint64) {
480 e.build(&e.instances.Assert, e.maps.Assert, n, &outID, func() *Assert {
481 return &Assert{
482 Ast: e.astCall(n.AST),
483 Condition: e.expr(n.Condition),
484 Message: e.str(n.Message),
485 }
486 })
487 return
488}
489
490func (e *encoder) assign(n *semantic.Assign) (outID uint64) {
491 e.build(&e.instances.Assign, e.maps.Assign, n, &outID, func() *Assign {

Callers 2

nodeMethod · 0.95
statMethod · 0.95

Calls 4

buildMethod · 0.95
astCallMethod · 0.95
exprMethod · 0.95
strMethod · 0.95

Tested by

no test coverage detected