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

Function parseConfigYaml

policy/config_test.go:244–250  ·  view source on GitHub ↗
(t *testing.T, doc string)

Source from the content-addressed store, hash-verified

242}
243
244func parseConfigYaml(t *testing.T, doc string) *env.Config {
245 config := &env.Config{}
246 if err := yaml.Unmarshal([]byte(doc), config); err != nil {
247 t.Fatalf("yaml.Unmarshal(%q) failed: %v", doc, err)
248 }
249 return config
250}

Callers 2

TestConfigFunction · 0.85
TestConfigErrorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected