diff --git a/libcontainer/specconv/spec_linux_test.go b/libcontainer/specconv/spec_linux_test.go index 56d808699..a7df54411 100644 --- a/libcontainer/specconv/spec_linux_test.go +++ b/libcontainer/specconv/spec_linux_test.go @@ -762,7 +762,7 @@ func TestInitSystemdProps(t *testing.T) { } } -func TestIsValidName(t *testing.T) { +func TestCheckPropertyName(t *testing.T) { testCases := []struct { in string valid bool @@ -787,7 +787,7 @@ func TestIsValidName(t *testing.T) { } } -func BenchmarkIsValidName(b *testing.B) { +func BenchmarkCheckPropertyName(b *testing.B) { for i := 0; i < b.N; i++ { for _, s := range []string{"", "xx", "xxx", "someValidName", "A name", "Кир", "მადლობა", "合い言葉"} { _ = checkPropertyName(s)