diff --git a/libcontainer/nsenter/test/escape.go b/libcontainer/nsenter/test/escape.go index 4accf967a..f85d9e211 100644 --- a/libcontainer/nsenter/test/escape.go +++ b/libcontainer/nsenter/test/escape.go @@ -14,7 +14,7 @@ import ( "unsafe" ) -func testEscapeJsonString(t *testing.T, input, want string) { +func testEscapeJSONString(t *testing.T, input, want string) { in := C.CString(input) out := C.escape_json_string(in) got := C.GoString(out) @@ -25,7 +25,7 @@ func testEscapeJsonString(t *testing.T, input, want string) { } } -func testEscapeJson(t *testing.T) { +func testEscapeJSON(t *testing.T) { testCases := []struct { input, output string }{ @@ -48,6 +48,6 @@ func testEscapeJson(t *testing.T) { } for _, tc := range testCases { - testEscapeJsonString(t, tc.input, tc.output) + testEscapeJSONString(t, tc.input, tc.output) } } diff --git a/libcontainer/nsenter/test/escape_test.go b/libcontainer/nsenter/test/escape_test.go index eefd5ecf1..3841cd097 100644 --- a/libcontainer/nsenter/test/escape_test.go +++ b/libcontainer/nsenter/test/escape_test.go @@ -6,6 +6,6 @@ import "testing" // so that it can use cgo (import "C"). // This wrapper is here for gotest to find. -func TestEscapeJson(t *testing.T) { - testEscapeJson(t) +func TestEscapeJSON(t *testing.T) { + testEscapeJSON(t) }