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

Function TestIsWindows_Adapter

internal/bridge/module_shell_test.go:264–274  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

262}
263
264func TestIsWindows_Adapter(t *testing.T) {
265 if !isWindows("Windows") {
266 t.Error("Windows should be true")
267 }
268 if !isWindows("windows") {
269 t.Error("windows (lowercase) should be true")
270 }
271 if isWindows("Linux") {
272 t.Error("Linux should be false")
273 }
274}
275
276// ---------------------------------------------------------------------------
277// NewShellModule constructor test

Callers

nothing calls this directly

Calls 2

isWindowsFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected