mirror of
				https://github.com/mgechev/revive.git
				synced 2025-10-30 23:37:49 +02:00 
			
		
		
		
	renames fixtures as testdata to avoid spurious dependencies (#359)
This commit is contained in:
		| @@ -36,7 +36,7 @@ var rules = []lint.Rule{ | ||||
| } | ||||
|  | ||||
| func TestAll(t *testing.T) { | ||||
| 	baseDir := "../fixtures/golint/" | ||||
| 	baseDir := "../testdata/golint/" | ||||
|  | ||||
| 	rx, err := regexp.Compile(*lintMatch) | ||||
| 	if err != nil { | ||||
|   | ||||
| @@ -20,7 +20,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| func testRule(t *testing.T, filename string, rule lint.Rule, config ...*lint.RuleConfig) { | ||||
| 	baseDir := "../fixtures/" | ||||
| 	baseDir := "../testdata/" | ||||
| 	filename = filename + ".go" | ||||
| 	src, err := ioutil.ReadFile(baseDir + filename) | ||||
| 	if err != nil { | ||||
|   | ||||
							
								
								
									
										0
									
								
								fixtures/atomic.go → testdata/atomic.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										0
									
								
								fixtures/atomic.go → testdata/atomic.go
									
									
									
									
										vendored
									
									
								
							
		Reference in New Issue
	
	Block a user