libct/specconv: test nits

Commit 643f8a2b40 renamed isValidName to checkPropertyName, but fell
short of renaming its test and benchmark. Fix that.

Fixes: 643f8a2b40
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2022-02-01 10:46:14 -08:00
parent e9190d3ae1
commit d37a9726f3
+2 -2
View File
@@ -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)