libcontainer/nsenter: fix captalization (golint)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-06-01 13:09:44 +02:00
parent 81fc5c8725
commit 340fdd9366
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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)
}
}
+2 -2
View File
@@ -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)
}