(t *testing.T)
| 364 | } |
| 365 | |
| 366 | func 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 | |
| 386 | func TestParseFromPlugins_MermaidProvider(t *testing.T) { |
| 387 | plugins := makePlugins(makePluginMap( |
nothing calls this directly
no test coverage detected