clearbit / clearbit-go

Go bindings for Clearbit
MIT License
12 stars 11 forks source link

update examples #14

Closed davidlumley closed 7 years ago

davidlumley commented 7 years ago

Noticed that we were having a bunch of failure on master. Some were related to how we were unmarshalling JSON, another was just an issue with the order of data being returned.

Before:

--- FAIL: ExampleProspectorService_Search_output (0.59s)
got:
alex@clearbit.com 200 OK
want:
amit@clearbit.com 200 OK
--- FAIL: ExampleCompanyService_Find_output (0.23s)
got:
&json.UnmarshalTypeError{Value:"string", Type:(*reflect.rtype)(0x1282800), Offset:2264, Struct:"", Field:"estimatedAnnualRevenue"}
200 OK
want:
Clearbit 200 OK
--- FAIL: ExamplePersonService_Find_output (0.20s)
got:
&json.UnmarshalTypeError{Value:"object", Type:(*reflect.rtype)(0x1283080), Offset:1749, Struct:"", Field:"urls"}
200 OK
want:
Alex MacCaw 200 OK
--- FAIL: ExamplePersonService_FindCombined_output (0.09s)
got:
&json.UnmarshalTypeError{Value:"object", Type:(*reflect.rtype)(0x1283080), Offset:1901, Struct:"", Field:"urls"}
200 OK
want:
Alex MacCaw Clearbit 200 OK
--- FAIL: ExampleDiscoveryService_Search_output (0.07s)
got:
&json.UnmarshalTypeError{Value:"string", Type:(*reflect.rtype)(0x1282800), Offset:1879, Struct:"", Field:"estimatedAnnualRevenue"}
200 OK
want:
clearbit.com 200 OK
FAIL
FAIL    command-line-arguments  3.019s

After:

ok      command-line-arguments  2.526s