MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / TestGetOSId

Function TestGetOSId

internal/system/system_goos_test.go:22–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestGetOSId(t *testing.T) {
23 osId, err := system.NewSystem().GetOSId()
24 if err != nil {
25 t.Error(err)
26 }
27 if osId != runtime.GOOS {
28 t.Error(osId)
29 }
30}

Callers

nothing calls this directly

Calls 2

NewSystemFunction · 0.92
GetOSIdMethod · 0.65

Tested by

no test coverage detected