From fde18e485ff7cbc7b2e33dade8e81136f06a5b60 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 8 Aug 2019 00:19:33 +0200 Subject: [pkg] remove vendor --- .../skratchdot/open-golang/open/open_test.go | 70 ---------------------- 1 file changed, 70 deletions(-) delete mode 100644 vendor/github.com/skratchdot/open-golang/open/open_test.go (limited to 'vendor/github.com/skratchdot/open-golang/open/open_test.go') diff --git a/vendor/github.com/skratchdot/open-golang/open/open_test.go b/vendor/github.com/skratchdot/open-golang/open/open_test.go deleted file mode 100644 index 5db2da2..0000000 --- a/vendor/github.com/skratchdot/open-golang/open/open_test.go +++ /dev/null @@ -1,70 +0,0 @@ -package open - -import "testing" - -func TestRun(t *testing.T) { - // shouldn't error - input := "https://google.com/" - err := Run(input) - if err != nil { - t.Errorf("open.Run(\"%s\") threw an error: %s", input, err) - } - - // should error - input = "xxxxxxxxxxxxxxx" - err = Run(input) - if err == nil { - t.Errorf("Run(\"%s\") did not throw an error as expected", input) - } -} - -func TestStart(t *testing.T) { - // shouldn't error - input := "https://google.com/" - err := Start(input) - if err != nil { - t.Errorf("open.Start(\"%s\") threw an error: %s", input, err) - } - - // shouldn't error - input = "xxxxxxxxxxxxxxx" - err = Start(input) - if err != nil { - t.Errorf("open.Start(\"%s\") shouldn't even fail on invalid input: %s", input, err) - } -} - -func TestRunWith(t *testing.T) { - // shouldn't error - input := "https://google.com/" - app := "firefox" - err := RunWith(input, app) - if err != nil { - t.Errorf("open.RunWith(\"%s\", \"%s\") threw an error: %s", input, app, err) - } - - // should error - app = "xxxxxxxxxxxxxxx" - err = RunWith(input, app) - if err == nil { - t.Errorf("RunWith(\"%s\", \"%s\") did not throw an error as expected", input, app) - } -} - -func TestStartWith(t *testing.T) { - // shouldn't error - input := "https://google.com/" - app := "firefox" - err := StartWith(input, app) - if err != nil { - t.Errorf("open.StartWith(\"%s\", \"%s\") threw an error: %s", input, app, err) - } - - // shouldn't error - input = "[]" - err = StartWith(input, app) - if err != nil { - t.Errorf("StartWith(\"%s\", \"%s\") shouldn't even fail on invalid input: %s", input, app, err) - } - -} -- cgit v1.2.3