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

Struct mockSystemInfo

internal/api/submit/request_test.go:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25type mockSystemInfo struct {
26 cpuArch string
27 arch string
28 osId string
29 cpuErr error
30 archErr error
31 osErr error
32}
33
34func (m *mockSystemInfo) GetCpuArchitecture() (string, error) {
35 return m.cpuArch, m.cpuErr

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected