MCPcopy Create free account
hub / github.com/github/gh-aw / TestDefaultsParseFileDisallowsUnknownFields

Function TestDefaultsParseFileDisallowsUnknownFields

pkg/cli/env_command_test.go:149–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func TestDefaultsParseFileDisallowsUnknownFields(t *testing.T) {
150 _, err := defaultsParseFile("defaults.yml", []byte("default_max_turns: \"42\"\ndefault_model_copliot: gpt-5-mini\n"))
151 require.Error(t, err)
152 assert.Contains(t, err.Error(), "default_model_copliot")
153}
154
155func TestDefaultsValidateFile(t *testing.T) {
156 t.Run("accepts valid values", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

defaultsParseFileFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected