Przeglądaj źródła

Windows: Fix parsers kernel test

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 9 lat temu
rodzic
commit
670fd201de
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      pkg/parsers/kernel/kernel_unix_test.go

+ 4 - 0
pkg/parsers/kernel/kernel_test.go → pkg/parsers/kernel/kernel_unix_test.go

@@ -1,3 +1,5 @@
+// +build !windows
+
 package kernel
 
 import (
@@ -19,6 +21,7 @@ func assertParseRelease(t *testing.T, release string, b *VersionInfo, result int
 	}
 }
 
+// TestParseRelease tests the ParseRelease() function
 func TestParseRelease(t *testing.T) {
 	assertParseRelease(t, "3.8.0", &VersionInfo{Kernel: 3, Major: 8, Minor: 0}, 0)
 	assertParseRelease(t, "3.4.54.longterm-1", &VersionInfo{Kernel: 3, Major: 4, Minor: 54, Flavor: ".longterm-1"}, 0)
@@ -48,6 +51,7 @@ func assertKernelVersion(t *testing.T, a, b VersionInfo, result int) {
 	}
 }
 
+// TestCompareKernelVersion tests the CompareKernelVersion() function
 func TestCompareKernelVersion(t *testing.T) {
 	assertKernelVersion(t,
 		VersionInfo{Kernel: 3, Major: 8, Minor: 0},