MCPcopy Index your code
hub / github.com/containerd/containerd / TestGetKernelVersion

Function TestGetKernelVersion

pkg/kernelversion/kernel_linux_test.go:29–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27)
28
29func 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
43func TestParseRelease(t *testing.T) {

Callers

nothing calls this directly

Calls 2

getKernelVersionFunction · 0.85
FatalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…