-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathexport_test.go
More file actions
28 lines (21 loc) · 726 Bytes
/
Copy pathexport_test.go
File metadata and controls
28 lines (21 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package gotwi
type MockResponse struct {
Text string `json:"text"`
}
func (c *Client) SetDebugMode(d bool) {
c.debug = d
}
func (m *MockResponse) HasPartialError() bool { return true }
var (
ExportNewRequest = newRequest
ExportResolveNon2XXResponse = resolveNon2XXResponse
ExportGenerateOAthNonce = generateOAthNonce
ExportEndpointBase = endpointBase
ExportCreateParameterString = createParameterString
ExportCreateSignatureBase = createSignatureBase
ExportCalculateSignature = calculateSignature
ExportWrapErr = wrapErr
ExportWrapWithAPIErr = wrapWithAPIErr
ExportNon2XXErrorSummary = non2XXErrorSummary
ExportNewStreamClient = newStreamClient[*MockResponse]
)