(t *testing.T)
| 592 | } |
| 593 | |
| 594 | func TestIsWindows(t *testing.T) { |
| 595 | t.Parallel() |
| 596 | if !isWindows("Windows") { |
| 597 | t.Error("expected true for Windows") |
| 598 | } |
| 599 | if !isWindows("windows") { |
| 600 | t.Error("expected true for windows (case insensitive)") |
| 601 | } |
| 602 | if isWindows("Linux") { |
| 603 | t.Error("expected false for Linux") |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | // =================================================================== |
| 608 | // E2E: Module command flow via Registry.Dispatch |