Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
func
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
NewSystem
Function · 0.92
GetOSId
Method · 0.65
Tested by
no test coverage detected