(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func TestGetKernelVersion(t *testing.T) { |
| 30 | version, err := getKernelVersion() |
| 31 | if err != nil { |
| 32 | t.Fatal(err) |
| 33 | } |
| 34 | if version == nil { |
| 35 | t.Fatal("version is nil") |
| 36 | } |
| 37 | if version.Kernel == 0 { |
| 38 | t.Fatal("no kernel version") |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // TestParseRelease tests the ParseRelease() function |
| 43 | func TestParseRelease(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…