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

Function TestCheck_AsInt64

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

Source from the content-addressed store, hash-verified

769}
770
771func TestCheck_AsInt64(t *testing.T) {
772 tree, err := parser.Parse(`true`)
773 require.NoError(t, err)
774
775 config := &conf.Config{}
776 expr.AsInt64()(config)
777
778 _, err = checker.Check(tree, config)
779 assert.Error(t, err)
780 assert.Equal(t, "expected int64, but got bool", err.Error())
781}
782
783func TestCheck_TaggedFieldName(t *testing.T) {
784 tree, err := parser.Parse(`foo.bar`)

Callers

nothing calls this directly

Calls 7

ParseFunction · 0.92
NoErrorFunction · 0.92
AsInt64Function · 0.92
CheckFunction · 0.92
ErrorFunction · 0.92
EqualFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…