From d37a9726f322ee0307cafc6b81e93fc6687c7f99 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 1 Feb 2022 10:46:14 -0800 Subject: [PATCH] libct/specconv: test nits Commit 643f8a2b408d5f renamed isValidName to checkPropertyName, but fell short of renaming its test and benchmark. Fix that. Fixes: 643f8a2b408d5f Signed-off-by: Kir Kolyshkin --- libcontainer/specconv/spec_linux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)