From d8714e64e400ef873c2adc4d929a07d7890727b9 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 14 Sep 2017 09:36:06 +0100 Subject: Remove the word middleware (#1067) * Rename middleware to plugin first pass; mostly used 'sed', few spots where I manually changed text. This still builds a coredns binary. * fmt error * Rename AddMiddleware to AddPlugin * Readd AddMiddleware to remain backwards compat --- middleware/metrics/setup_test.go | 42 ---------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 middleware/metrics/setup_test.go (limited to 'middleware/metrics/setup_test.go') diff --git a/middleware/metrics/setup_test.go b/middleware/metrics/setup_test.go deleted file mode 100644 index 73555427e..000000000 --- a/middleware/metrics/setup_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package metrics - -import ( - "testing" - - "github.com/mholt/caddy" -) - -func TestPrometheusParse(t *testing.T) { - tests := []struct { - input string - shouldErr bool - addr string - }{ - // oks - {`prometheus`, false, "localhost:9153"}, - {`prometheus localhost:53`, false, "localhost:53"}, - // fails - {`prometheus {}`, true, ""}, - {`prometheus /foo`, true, ""}, - {`prometheus a b c`, true, ""}, - } - for i, test := range tests { - c := caddy.NewTestController("dns", test.input) - m, err := prometheusParse(c) - if test.shouldErr && err == nil { - t.Errorf("Test %v: Expected error but found nil", i) - continue - } else if !test.shouldErr && err != nil { - t.Errorf("Test %v: Expected no error but found error: %v", i, err) - continue - } - - if test.shouldErr { - continue - } - - if test.addr != m.Addr { - t.Errorf("Test %v: Expected address %s but found: %s", i, test.addr, m.Addr) - } - } -} -- cgit v1.2.3 on value='ciro/queue-response-experiment'>ciro/queue-response-experiment Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/unicode-identifiers.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-11-23update Next version on globalGravatar Jack Hanford 1-1/+1
2021-11-23Update build-idGravatar Jarred Sumner 1-1/+1
2021-11-23fix shallow routingGravatar Jack Hanford 1-4/+6
2021-11-23remove commentGravatar Jack Hanford 1-1/+0
2021-11-23add react-dom as devDepGravatar Jack Hanford 1-0/+1
2021-11-23stop installing textencoderGravatar Jack Hanford 3-2/+308
2021-11-23begin addressing more feedbackGravatar Jack Hanford 1-3/+3
2021-11-22remove .thenGravatar Jack Hanford 1-12/+3
2021-11-22another tryGravatar Jack Hanford 2-5/+1
2021-11-22add type fnsGravatar Jack Hanford 1-1/+4