mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libcontainer/nsenter: fix captalization (golint)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user