MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TestConfig_Parse_NonExistentFile

Function TestConfig_Parse_NonExistentFile

test/config_test.go:375–380  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

373}
374
375func TestConfig_Parse_NonExistentFile(t *testing.T) {
376 _, err := config.Parse("/nonexistent/path/commitlint.yaml")
377 if err == nil {
378 t.Error("expected error for non-existent config file")
379 }
380}
381
382func TestConfig_Parse_InvalidYAML(t *testing.T) {
383 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected