MCPcopy Create free account
hub / github.com/cel-expr/cel-go / TestConfigAddVariableDeclsEmpty

Function TestConfigAddVariableDeclsEmpty

common/env/env_test.go:512–516  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

510}
511
512func TestConfigAddVariableDeclsEmpty(t *testing.T) {
513 if len(NewConfig("").AddVariables().Variables) != 0 {
514 t.Error("AddVariables() with no args failed")
515 }
516}
517
518func TestConfigAddFunctionDecls(t *testing.T) {
519 tests := []struct {

Callers

nothing calls this directly

Calls 3

NewConfigFunction · 0.85
AddVariablesMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected