diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-12 23:21:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-12 23:21:28 +0900 |
| commit | ac543a1ce801306ec1dc8058aee8da1f812c1198 (patch) | |
| tree | 4a4ba2e1ee380ed809b5e28f0a0a2bc4c81cc800 | |
| parent | e2489059c103800ab62250351db895415e0cdfed (diff) | |
dbus: rename makeTestCases
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | dbus/config_test.go | 4 | ||||
| -rw-r--r-- | dbus/samples_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbus/config_test.go b/dbus/config_test.go index e28d4f79..09520193 100644 --- a/dbus/config_test.go +++ b/dbus/config_test.go @@ -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) diff --git a/dbus/samples_test.go b/dbus/samples_test.go index 19d66b6a..653a02f4 100644 --- a/dbus/samples_test.go +++ b/dbus/samples_test.go @@ -145,7 +145,7 @@ var ( testCaseOnce sync.Once ) -func testCases() []dbusTestCase { +func makeTestCases() []dbusTestCase { testCaseOnce.Do(testCaseGenerate) return testCasesV } |
