dbus: rename makeTestCases
All checks were successful
Tests / Go tests (push) Successful in 2m36s
Nix / NixOS tests (push) Successful in 10m5s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-01-12 23:21:28 +09:00
parent e2489059c1
commit ac543a1ce8
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import (
)
func TestConfig_Args(t *testing.T) {
for _, tc := range testCases() {
for _, tc := range makeTestCases() {
if tc.wantErr {
// args does not check for nulls
continue
@ -30,7 +30,7 @@ func TestConfig_Args(t *testing.T) {
}
func TestNewConfigFromFile(t *testing.T) {
for _, tc := range testCases() {
for _, tc := range makeTestCases() {
name := new(strings.Builder)
name.WriteString("parse configuration file for application ")
name.WriteString(tc.id)

View File

@ -145,7 +145,7 @@ var (
testCaseOnce sync.Once
)
func testCases() []dbusTestCase {
func makeTestCases() []dbusTestCase {
testCaseOnce.Do(testCaseGenerate)
return testCasesV
}