Files
og/internal/hoststats/nvidia_test.go
T
2026-09-11 06:14:38 +02:00

13 lines
379 B
Go

package hoststats
import "testing"
// Parsing is exercised indirectly through the command-backed function in
// integration environments with nvidia-smi. Keep this package dependency-free.
func TestNVIDIAStruct(t *testing.T) {
n := NVIDIA{UtilizationPercent: 50, MemoryUsedBytes: 1, MemoryTotalBytes: 2}
if n.MemoryTotalBytes != 2 {
t.Fatal("unexpected struct value")
}
}