Release
This commit is contained in:
parent
d1095bc769
commit
69ef2a5d9a
@ -9,23 +9,12 @@ const (
|
|||||||
testToken = ""
|
testToken = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
func check(t *testing.T, e error) {
|
|
||||||
if e != nil {
|
|
||||||
t.Error(e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func assert(t *testing.T, condition bool, assertion string) {
|
|
||||||
if !condition {
|
|
||||||
t.Errorf("Assertion failed: %v", assertion)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func initDiscogsClient(t *testing.T, options *Options) *Client {
|
func initDiscogsClient(t *testing.T, options *Options) *Client {
|
||||||
if options == nil {
|
if options == nil {
|
||||||
options = &Options{
|
options = &Options{
|
||||||
UserAgent: testUserAgent,
|
UserAgent: testUserAgent,
|
||||||
Currency: "USD",
|
Currency: "USD",
|
||||||
|
Token: testToken,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user