We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804c61e commit bb74f7bCopy full SHA for bb74f7b
mock/client.go
@@ -135,7 +135,7 @@ func NewMockHttpClient(options ...MockHttpClientOption) *http.Client {
135
}
136
137
138
-func MustMarshall(v interface{}) []byte {
+func MustMarshal(v interface{}) []byte {
139
b, err := json.Marshal(v)
140
141
if err == nil {
mock/client_test.go
@@ -13,13 +13,13 @@ func TestMockClient(t *testing.T) {
13
mockedHttpClient := NewMockHttpClient(
14
WithRequestMatch(
15
RequestMatchUsersGet,
16
- MustMarshall(github.User{
+ MustMarshal(github.User{
17
Name: github.String("foobar"),
18
}),
19
),
20
21
RequestMatchOrganizationsList,
22
- MustMarshall([]github.Organization{
+ MustMarshal([]github.Organization{
23
{
24
Name: github.String("foobar123thisorgwasmocked"),
25
},
0 commit comments