99func TestCatalog (t * testing.T ) {
1010 client := NewClient ()
1111
12- catalog , err := client .GetCatalog ("" , "" , 10 , 0 )
12+ catalog , err := client .Catalog ("" , "" , 10 , 0 )
1313 assert .NoError (t , err )
1414 assert .NotEmpty (t , catalog .Data )
1515 assert .NotEqual (t , 0 , catalog .Total )
@@ -19,7 +19,7 @@ func TestCatalog(t *testing.T) {
1919func TestCatalog_Search (t * testing.T ) {
2020 client := NewClient ()
2121
22- catalog , err := client .GetCatalog ("mix" , "" , 10 , 0 )
22+ catalog , err := client .Catalog ("mix" , "" , 10 , 0 )
2323 assert .NoError (t , err )
2424 assert .NotEmpty (t , catalog .Data )
2525 assert .NotEqual (t , 0 , catalog .Total )
@@ -29,7 +29,7 @@ func TestCatalog_Search(t *testing.T) {
2929func TestCatalog_Search_NoResults (t * testing.T ) {
3030 client := NewClient ()
3131
32- catalog , err := client .GetCatalog ("xxx not found xxx" , "" , 10 , 0 )
32+ catalog , err := client .Catalog ("xxx not found xxx" , "" , 10 , 0 )
3333 assert .NoError (t , err )
3434 assert .Empty (t , catalog .Data )
3535 assert .Equal (t , 0 , catalog .Total )
@@ -39,7 +39,7 @@ func TestCatalog_Search_NoResults(t *testing.T) {
3939func TestCatalog_Type (t * testing.T ) {
4040 client := NewClient ()
4141
42- catalog , err := client .GetCatalog ("" , string (ReleaseTypeSingle ), 10 , 0 )
42+ catalog , err := client .Catalog ("" , string (ReleaseTypeSingle ), 10 , 0 )
4343 assert .NoError (t , err )
4444 assert .NotEmpty (t , catalog .Data )
4545 assert .NotEqual (t , 0 , catalog .Total )
@@ -49,7 +49,7 @@ func TestCatalog_Type(t *testing.T) {
4949func TestCatalog_Type_NoResults (t * testing.T ) {
5050 client := NewClient ()
5151
52- catalog , err := client .GetCatalog ("" , "xxx not found" , 10 , 0 )
52+ catalog , err := client .Catalog ("" , "xxx not found" , 10 , 0 )
5353 assert .NoError (t , err )
5454 assert .Empty (t , catalog .Data )
5555 assert .Equal (t , 0 , catalog .Total )
@@ -59,7 +59,7 @@ func TestCatalog_Type_NoResults(t *testing.T) {
5959func TestCatalog_Search_Type (t * testing.T ) {
6060 client := NewClient ()
6161
62- catalog , err := client .GetCatalog ("mix" , string (ReleaseTypeCompilation ), 5 , 0 )
62+ catalog , err := client .Catalog ("mix" , string (ReleaseTypeCompilation ), 5 , 0 )
6363 assert .NoError (t , err )
6464 assert .NotEmpty (t , catalog .Data )
6565 assert .NotEqual (t , 0 , catalog .Total )
@@ -69,11 +69,11 @@ func TestCatalog_Search_Type(t *testing.T) {
6969func TestCatalogUntilEnd (t * testing.T ) {
7070 client := NewClient ()
7171
72- catalog , err := client .GetCatalog ("" , "" , 100 , 0 )
72+ catalog , err := client .Catalog ("" , "" , 100 , 0 )
7373 assert .NoError (t , err )
7474
7575 for catalog .HasNextPage () {
76- catalog , err = client .GetCatalog ("" , "" , catalog .Limit , catalog .Offset + catalog .Limit )
76+ catalog , err = client .Catalog ("" , "" , catalog .Limit , catalog .Offset + catalog .Limit )
7777 assert .NoError (t , err )
7878 }
7979}
0 commit comments