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

Function TestGetLayerGraphFollowDepth

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

Source from the content-addressed store, hash-verified

364}
365
366func TestGetLayerGraphFollowDepth(t *testing.T) {
367 // Default (zero value)
368 opts := &etscore.EffectPluginOptions{}
369 if got := opts.GetLayerGraphFollowDepth(); got != 0 {
370 t.Errorf("GetLayerGraphFollowDepth() = %d, want 0", got)
371 }
372
373 // Non-zero
374 opts.LayerGraphFollowDepth = 3
375 if got := opts.GetLayerGraphFollowDepth(); got != 3 {
376 t.Errorf("GetLayerGraphFollowDepth() = %d, want 3", got)
377 }
378
379 // Nil receiver
380 var nilOpts *etscore.EffectPluginOptions
381 if got := nilOpts.GetLayerGraphFollowDepth(); got != 0 {
382 t.Errorf("GetLayerGraphFollowDepth() on nil = %d, want 0", got)
383 }
384}
385
386func TestParseFromPlugins_MermaidProvider(t *testing.T) {
387 plugins := makePlugins(makePluginMap(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected