summaryrefslogtreecommitdiff
path: root/mock.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-10-05 14:53:37 +0200
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-10-05 14:53:37 +0200
commit1fc497fbdc79a43c62ac2e8eaf4827752dbeef8e (patch)
tree67738e213ef97f249bdfa0f1bddda0839192cb77 /mock.go
parentbd9e7f7acfd855d4685aa4544169c0e29cdbf205 (diff)
Refactor codebase into modules
Diffstat (limited to 'mock.go')
-rw-r--r--mock.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/mock.go b/mock.go
index 44b8837..147ca82 100644
--- a/mock.go
+++ b/mock.go
@@ -1,3 +1,7 @@
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
package flyscrape
import (
@@ -7,7 +11,7 @@ import (
"strings"
)
-func MockTransport(statusCode int, html string) func(*http.Request) (*http.Response, error) {
+func MockTransport(statusCode int, html string) RoundTripFunc {
return func(*http.Request) (*http.Response, error) {
return MockResponse(statusCode, html)
}