sobject/collections/mock_session_formatter.go (16 lines of code) (raw):
package collections
import "net/http"
type mockSessionFormatter struct {
url string
client *http.Client
}
func (mock *mockSessionFormatter) ServiceURL() string {
return mock.url
}
func (mock *mockSessionFormatter) AuthorizationHeader(*http.Request) {}
func (mock *mockSessionFormatter) Client() *http.Client {
return mock.client
}
func (mock *mockSessionFormatter) InstanceURL() string {
return mock.url
}