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) { | func TestConfig_Args(t *testing.T) { | ||||||
| 	for _, tc := range testCases() { | 	for _, tc := range makeTestCases() { | ||||||
| 		if tc.wantErr { | 		if tc.wantErr { | ||||||
| 			// args does not check for nulls | 			// args does not check for nulls | ||||||
| 			continue | 			continue | ||||||
| @ -30,7 +30,7 @@ func TestConfig_Args(t *testing.T) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func TestNewConfigFromFile(t *testing.T) { | func TestNewConfigFromFile(t *testing.T) { | ||||||
| 	for _, tc := range testCases() { | 	for _, tc := range makeTestCases() { | ||||||
| 		name := new(strings.Builder) | 		name := new(strings.Builder) | ||||||
| 		name.WriteString("parse configuration file for application ") | 		name.WriteString("parse configuration file for application ") | ||||||
| 		name.WriteString(tc.id) | 		name.WriteString(tc.id) | ||||||
|  | |||||||
| @ -145,7 +145,7 @@ var ( | |||||||
| 	testCaseOnce sync.Once | 	testCaseOnce sync.Once | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func testCases() []dbusTestCase { | func makeTestCases() []dbusTestCase { | ||||||
| 	testCaseOnce.Do(testCaseGenerate) | 	testCaseOnce.Do(testCaseGenerate) | ||||||
| 	return testCasesV | 	return testCasesV | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user