MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestIsWindows

Function TestIsWindows

internal/bridge/modules_test.go:594–605  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

592}
593
594func 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

Callers

nothing calls this directly

Calls 2

isWindowsFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected