Added more route tests
This commit is contained in:
parent
15f4bcfb85
commit
be44f7e37c
40
tests.go
40
tests.go
@ -62,22 +62,42 @@ var routeTests = map[string][]string{
|
|||||||
"/+Akyoto/animelist/watching",
|
"/+Akyoto/animelist/watching",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/user/:nick/animelist/watching/from/:index": []string{
|
||||||
|
"/+Akyoto/animelist/watching/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/user/:nick/animelist/completed": []string{
|
"/user/:nick/animelist/completed": []string{
|
||||||
"/+Akyoto/animelist/completed",
|
"/+Akyoto/animelist/completed",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/user/:nick/animelist/completed/from/:index": []string{
|
||||||
|
"/+Akyoto/animelist/completed/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/user/:nick/animelist/planned": []string{
|
"/user/:nick/animelist/planned": []string{
|
||||||
"/+Akyoto/animelist/planned",
|
"/+Akyoto/animelist/planned",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/user/:nick/animelist/planned/from/:index": []string{
|
||||||
|
"/+Akyoto/animelist/planned/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/user/:nick/animelist/hold": []string{
|
"/user/:nick/animelist/hold": []string{
|
||||||
"/+Akyoto/animelist/hold",
|
"/+Akyoto/animelist/hold",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/user/:nick/animelist/hold/from/:index": []string{
|
||||||
|
"/+Akyoto/animelist/hold/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/user/:nick/animelist/dropped": []string{
|
"/user/:nick/animelist/dropped": []string{
|
||||||
"/+Akyoto/animelist/dropped",
|
"/+Akyoto/animelist/dropped",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/user/:nick/animelist/dropped/from/:index": []string{
|
||||||
|
"/+Akyoto/animelist/dropped/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/user/:nick/recommended/anime": []string{
|
"/user/:nick/recommended/anime": []string{
|
||||||
"/+Akyoto/recommended/anime",
|
"/+Akyoto/recommended/anime",
|
||||||
},
|
},
|
||||||
@ -139,22 +159,34 @@ var routeTests = map[string][]string{
|
|||||||
"/soundtrack/h0ac8sKkg/edit",
|
"/soundtrack/h0ac8sKkg/edit",
|
||||||
},
|
},
|
||||||
|
|
||||||
"/soundtracks": []string{
|
"/soundtrack/:id/history": []string{
|
||||||
"/soundtracks",
|
"/soundtrack/h0ac8sKkg/history",
|
||||||
},
|
},
|
||||||
|
|
||||||
"/soundtracks/best": []string{
|
"/soundtracks": []string{
|
||||||
"/soundtracks/best",
|
"/soundtracks",
|
||||||
},
|
},
|
||||||
|
|
||||||
"/soundtracks/from/:index": []string{
|
"/soundtracks/from/:index": []string{
|
||||||
"/soundtracks/from/12",
|
"/soundtracks/from/12",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/soundtracks/best": []string{
|
||||||
|
"/soundtracks/best",
|
||||||
|
},
|
||||||
|
|
||||||
"/soundtracks/best/from/:index": []string{
|
"/soundtracks/best/from/:index": []string{
|
||||||
"/soundtracks/best/from/12",
|
"/soundtracks/best/from/12",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"/soundtracks/tag/:tag": []string{
|
||||||
|
"/soundtracks/tag/moe",
|
||||||
|
},
|
||||||
|
|
||||||
|
"/soundtracks/tag/:tag/from/:index": []string{
|
||||||
|
"/soundtracks/tag/moe/from/3",
|
||||||
|
},
|
||||||
|
|
||||||
"/character/:id": []string{
|
"/character/:id": []string{
|
||||||
"/character/6556",
|
"/character/6556",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user