mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -21,6 +21,7 @@ func TestDefaultProcessor(t *testing.T) {
|
||||
}
|
||||
|
||||
func testProcessor(t *testing.T, processor cache.ProcessFunc, idx cache.Indexer) {
|
||||
t.Helper()
|
||||
obj := &api.Service{
|
||||
ObjectMeta: metav1.ObjectMeta{Name: "service1", Namespace: "test1"},
|
||||
Spec: api.ServiceSpec{
|
||||
@@ -129,6 +130,7 @@ func TestDefaultProcessorWithPod(t *testing.T) {
|
||||
}
|
||||
|
||||
func testProcessorWithPod(t *testing.T, processor cache.ProcessFunc, idx cache.Indexer) {
|
||||
t.Helper()
|
||||
container := api.Container{}
|
||||
obj := &api.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: "test1"},
|
||||
|
||||
Reference in New Issue
Block a user