MCPcopy
hub / github.com/expr-lang/expr / TestCheck_PointerNode

Function TestCheck_PointerNode

checker/checker_test.go:849–853  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

847}
848
849func TestCheck_PointerNode(t *testing.T) {
850 _, err := checker.Check(&parser.Tree{Node: &ast.PointerNode{}}, nil)
851 assert.Error(t, err)
852 assert.Contains(t, err.Error(), "cannot use pointer accessor outside predicate")
853}
854
855func TestCheck_TypeWeights(t *testing.T) {
856 types := map[string]any{

Callers

nothing calls this directly

Calls 4

CheckFunction · 0.92
ErrorFunction · 0.92
ContainsFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…