dbus: rename makeTestCases
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
e2489059c1
commit
ac543a1ce8
@ -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)
|
||||
|
@ -145,7 +145,7 @@ var (
|
||||
testCaseOnce sync.Once
|
||||
)
|
||||
|
||||
func testCases() []dbusTestCase {
|
||||
func makeTestCases() []dbusTestCase {
|
||||
testCaseOnce.Do(testCaseGenerate)
|
||||
return testCasesV
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user