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

Function TestLoadRepoConfig_InvalidJSON

pkg/workflow/repo_config_test.go:120–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118}
119
120func TestLoadRepoConfig_InvalidJSON(t *testing.T) {
121 dir := t.TempDir()
122 writeAWJSONRaw(t, dir, `not-json`)
123
124 _, err := LoadRepoConfig(dir)
125 assert.Error(t, err, "invalid JSON should return an error")
126}
127
128func TestLoadRepoConfig_SchemaViolation(t *testing.T) {
129 dir := t.TempDir()

Callers

nothing calls this directly

Calls 3

writeAWJSONRawFunction · 0.85
LoadRepoConfigFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected