Index: client/internal/lhttp/utils_test.go |
diff --git a/client/internal/lhttp/utils_test.go b/client/internal/lhttp/utils_test.go |
deleted file mode 100644 |
index a7fb3d2dcacc10f977ff6e9adf1766a2d5c672c7..0000000000000000000000000000000000000000 |
--- a/client/internal/lhttp/utils_test.go |
+++ /dev/null |
@@ -1,29 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-package lhttp |
- |
-import ( |
- "errors" |
- "testing" |
- |
- "github.com/maruel/ut" |
-) |
- |
-func TestURLToHTTPS(t *testing.T) { |
- data := []struct { |
- in string |
- expected string |
- err error |
- }{ |
- {"foo", "https://foo", nil}, |
- {"https://foo", "https://foo", nil}, |
- {"http://foo", "", errors.New("Only https:// scheme is accepted. It can be omitted.")}, |
- } |
- for i, line := range data { |
- out, err := URLToHTTPS(line.in) |
- ut.AssertEqualIndex(t, i, line.expected, out) |
- ut.AssertEqualIndex(t, i, line.err, err) |
- } |
-} |