From 340fdd9366301b49e532424efda1ca6228f5d619 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 1 Jun 2021 13:09:44 +0200 Subject: [PATCH] libcontainer/nsenter: fix captalization (golint) Signed-off-by: Sebastiaan van Stijn --- libcontainer/nsenter/test/escape.go | 6 +++--- libcontainer/nsenter/test/escape_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) }