From e5d16d3daca61402ec2642b98c378d81cdc728cd Mon Sep 17 00:00:00 2001 From: risk danger olson Date: Thu, 4 Feb 2016 13:42:43 -0700 Subject: [PATCH 1/2] goimports --- lfs/util_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/util_linux.go b/lfs/util_linux.go index 0f718fdf..776739dc 100644 --- a/lfs/util_linux.go +++ b/lfs/util_linux.go @@ -13,8 +13,8 @@ package lfs import "C" import ( - "os" "io" + "os" "syscall" ) From 600a5776ae6f2e2018748699d74bf8522f7d2682 Mon Sep 17 00:00:00 2001 From: risk danger olson Date: Thu, 4 Feb 2016 13:43:05 -0700 Subject: [PATCH 2/2] no need to test unused/removed method anymore --- commands/command_track_test.go | 35 ---------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 commands/command_track_test.go diff --git a/commands/command_track_test.go b/commands/command_track_test.go deleted file mode 100644 index f4f3792a..00000000 --- a/commands/command_track_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package commands - -import "testing" - -type checker struct { - *testing.T -} - -func TestAbsRelPath(t *testing.T) { - c := &checker{t} - - ae := "/home/test" - re := "test" - a, r := absRelPath("test", "/home") - c.Check(a, ae) - c.Check(r, re) - - ae = "/home/test/some/directory/with/a/file.txt" - re = "some/directory/with/a/file.txt" - a, r = absRelPath("/home/test/some/directory/with/a/file.txt", "/home/test") - c.Check(a, ae) - c.Check(r, re) - - ae = "/home/test/some/directory/with/a/file.txt" - re = "some/directory/with/a/file.txt" - a, r = absRelPath("some/directory/with/a/file.txt", "/home/test") - c.Check(a, ae) - c.Check(r, re) -} - -func (c *checker) Check(g, e string) { - if g != e { - c.Errorf("Expected %s got %s", e, g) - } -}