This file is indexed.

/usr/share/gocode/src/github.com/stretchr/testify/http/test_round_tripper.go is in golang-github-stretchr-testify-dev 1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
package http

import (
	"github.com/stretchr/testify/mock"
	"net/http"
)

type TestRoundTripper struct {
	mock.Mock
}

func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
	args := t.Called(req)
	return args.Get(0).(*http.Response), args.Error(1)
}