mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
		
							
								
								
									
										1
									
								
								plugin/cache/freq/freq_test.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								plugin/cache/freq/freq_test.go
									
									
									
									
										vendored
									
									
								
							| @@ -30,6 +30,7 @@ func TestReset(t *testing.T) { | ||||
| } | ||||
|  | ||||
| func hitsCheck(t *testing.T, f *Freq, expected int) { | ||||
| 	t.Helper() | ||||
| 	if x := f.Hits(); x != expected { | ||||
| 		t.Fatalf("Expected hits to be %d, got %d", expected, x) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user