MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / TestParseFromPlugins_ExitCodeDefaults

Function TestParseFromPlugins_ExitCodeDefaults

etscore/options_test.go:30–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func 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
48func TestParseFromPlugins_DebugExplicitTrue(t *testing.T) {
49 plugins := makePlugins(makePluginMap(

Callers

nothing calls this directly

Calls 4

ParseFromPluginsFunction · 0.92
makePluginsFunction · 0.85
makePluginMapFunction · 0.85
GetDebugEnabledMethod · 0.80

Tested by

no test coverage detected