mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 02:59:23 +08:00
14 lines
224 B
Go
14 lines
224 B
Go
package monitoring
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGpuName(t *testing.T) {
|
|
name := GpuName()
|
|
if name == "" || name == "Unknown" {
|
|
t.Errorf("Expected GPU name, got empty or 'Unknown'")
|
|
}
|
|
t.Logf("GPU name: %s", name)
|
|
}
|