Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Created January 4, 2018 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lomanic/daa4a2d1a6ab9afa385ea5a0359d1090 to your computer and use it in GitHub Desktop.
Save Lomanic/daa4a2d1a6ab9afa385ea5a0359d1090 to your computer and use it in GitHub Desktop.
go test ./... github.com/shirou/gopsutil ; HEAD 7ec06ec ; GOOS=windows GOARCH=amd64
go test ./...
? github.com/shirou/gopsutil [no test files]
--- FAIL: TestCPUPercentIntervalZeroPerCPU (1.69s)
cpu_test.go:124: CPUPercent value is invalid: 1100.000000
FAIL
FAIL github.com/shirou/gopsutil/cpu 5.957s
--- FAIL: TestDisk_partitions (0.01s)
disk_test.go:26: error Accès refusé.
FAIL
FAIL github.com/shirou/gopsutil/disk 1.039s
? github.com/shirou/gopsutil/docker [no test files]
--- FAIL: TestUsers (0.00s)
host_test.go:57: Users is empty
--- FAIL: TestVirtualization (0.00s)
host_test.go:121: Virtualization() failed, not implemented yet
host_test.go:124: Virtualization() retuns empty system or role: ,
host_test.go:127: Virtualization(): ,
FAIL
FAIL github.com/shirou/gopsutil/host 1.524s
import (
--- FAIL: TestHostEtc (0.00s)
common_test.go:97: invalid HostEtc, \etc\mtab
FAIL
FAIL github.com/shirou/gopsutil/internal/common 0.095s
--- FAIL: TestLoad (0.00s)
load_test.go:11: error not implemented yet
load_test.go:18: {"load1":0,"load5":0,"load15":0}
--- FAIL: TestMisc (0.00s)
load_test.go:37: error not implemented yet
load_test.go:44: {"procsRunning":0,"procsBlocked":0,"ctxt":0}
FAIL
FAIL github.com/shirou/gopsutil/load 0.089s
--- FAIL: TestVirtual_memory (0.00s)
Error Trace: mem_test.go:32
Error: Should be true
Test: TestVirtual_memory
Error Trace: mem_test.go:38
Error: Max difference between 76 and 76.2557633889458 allowed is 0.1, but difference was -0.25576338894579465
Test: TestVirtual_memory
Messages: UsedPercent should be how many percent of Total is Used: {"total":4202860544,"available":997937152,"used":3204923392,"usedPercent":76,"free":0,"active":0,"inactive":0,"wired":0,"buffers":0,"cached":0,"writeback":0,"dirty":0,"writebacktmp":0,"shared":0,"slab":0,"pagetables":0,"swapcached":0}
FAIL
FAIL github.com/shirou/gopsutil/mem 1.394s
--- FAIL: TestNetProtoCountersStatsAll (0.00s)
net_test.go:148: Could not get NetProtoCounters: NetProtoCounters not implemented for windows
--- FAIL: TestNetProtoCountersStats (0.00s)
net_test.go:166: Could not get NetProtoCounters: NetProtoCounters not implemented for windows
--- FAIL: TestNetConnections (0.00s)
net_test.go:191: could not get NetConnections: not implemented yet
net_test.go:194: could not get NetConnections: []
--- FAIL: TestNetFilterCounters (0.00s)
net_test.go:218: could not get NetConnections: NetFilterCounters not implemented for windows
net_test.go:221: could not get NetConnections: []
FAIL
FAIL github.com/shirou/gopsutil/net 2.016s
--- FAIL: Test_Process_memory_maps (0.00s)
process_test.go:91: memory map get error not implemented yet
--- FAIL: Test_Process_Status (0.00s)
process_test.go:154: geting status error not implemented yet
process_test.go:157: could not get state
--- FAIL: Test_Process_Terminal (0.00s)
process_test.go:166: geting terminal error not implemented yet
--- FAIL: Test_Process_NumCtx (0.00s)
process_test.go:195: geting numctx error not implemented yet
--- FAIL: Test_Process_Threads (0.05s)
process_test.go:236: geting Threads error not implemented yet
process_test.go:239: unexpected number of threads: 0 vs 11
--- FAIL: Test_Connections (0.00s)
process_test.go:343: error not implemented yet
--- FAIL: Test_Children (0.05s)
process_test.go:364: children is empty
--- FAIL: Test_OpenFiles (0.00s)
Error Trace: process_test.go:416
Error: Expected nil, but got: &errors.errorString{s:"not implemented yet"}
Test: Test_OpenFiles
Error Trace: process_test.go:417
Error: Should NOT be empty, but was []
Test: Test_OpenFiles
--- FAIL: Test_Kill (0.10s)
Error Trace: process_test.go:440
Error: Expected nil, but got: &os.SyscallError{Syscall:"TerminateProcess", Err:0x5}
Test: Test_Kill
FAIL
FAIL github.com/shirou/gopsutil/process 4.778s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment