(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestParseFromPlugins_ExitCodeDefaults(t *testing.T) { |
| 31 | // Plugin with just the name — no exit-code keys present |
| 32 | plugins := makePlugins(makePluginMap("name", etscore.EffectPluginName)) |
| 33 | opts := etscore.ParseFromPlugins(plugins) |
| 34 | if opts == nil { |
| 35 | t.Fatal("expected non-nil options") |
| 36 | } |
| 37 | if !opts.IgnoreEffectSuggestionsInTscExitCode { |
| 38 | t.Error("expected IgnoreEffectSuggestionsInTscExitCode to default to true") |
| 39 | } |
| 40 | if opts.IgnoreEffectWarningsInTscExitCode { |
| 41 | t.Error("expected IgnoreEffectWarningsInTscExitCode to default to false") |
| 42 | } |
| 43 | if opts.GetDebugEnabled() { |
| 44 | t.Error("expected Debug to default to false") |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func TestParseFromPlugins_DebugExplicitTrue(t *testing.T) { |
| 49 | plugins := makePlugins(makePluginMap( |
nothing calls this directly
no test coverage detected