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

Function TestParseFromPlugins_ExitCodeExplicitTrue

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

Source from the content-addressed store, hash-verified

169 resolvedSeverity := pluginoptions.ResolveDiagnosticSeverityForFile(opts, "/repo/generated/example.ts", "/repo/tsconfig.json", true)
170 if got := resolvedSeverity["deterministicKeys"]; got != etscore.SeverityOff {
171 t.Errorf("deterministicKeys severity = %v, want %v", got, etscore.SeverityOff)
172 }
173}
174
175func intPtr(value int) *int {
176 return &value
177}
178
179func TestParseFromPlugins_ExitCodeExplicitTrue(t *testing.T) {
180 plugins := makePlugins(makePluginMap(
181 "name", etscore.EffectPluginName,
182 "ignoreEffectSuggestionsInTscExitCode", true,
183 "ignoreEffectWarningsInTscExitCode", true,
184 ))
185 opts := etscore.ParseFromPlugins(plugins)
186 if opts == nil {
187 t.Fatal("expected non-nil options")
188 }
189 if !opts.IgnoreEffectSuggestionsInTscExitCode {
190 t.Error("expected IgnoreEffectSuggestionsInTscExitCode to be true")

Callers

nothing calls this directly

Calls 3

ParseFromPluginsFunction · 0.92
makePluginsFunction · 0.85
makePluginMapFunction · 0.85

Tested by

no test coverage detected