From a4ca608937e77cddccdc5330cebfca2c6b4d3395 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Fri, 27 Jan 2023 17:59:18 +0100 Subject: [PATCH] Remove previous test methods There were a few tests that used to be here only to run a mock pipeline. Since we now have testable methods, this is not useful anymore and this commit removes them --- tracker/main.go | 4 ---- tracker/main_test.go | 9 --------- 2 files changed, 13 deletions(-) delete mode 100644 tracker/main_test.go diff --git a/tracker/main.go b/tracker/main.go index 1bd2289..6e88d69 100644 --- a/tracker/main.go +++ b/tracker/main.go @@ -9,10 +9,6 @@ import ( "git.faercol.me/faercol/public-ip-tracker/tracker/config" ) -func testMethod(a int) int { - return a + 2 -} - type cliArgs struct { configPath string } diff --git a/tracker/main_test.go b/tracker/main_test.go deleted file mode 100644 index 3fefe71..0000000 --- a/tracker/main_test.go +++ /dev/null @@ -1,9 +0,0 @@ -package main - -import "testing" - -func TestTestMethod(t *testing.T) { - if testMethod(12) != 14 { - t.Fatalf("Unexpected result %d", testMethod((12))) - } -}