397 lines
6.3 KiB
Go
Raw Normal View History

2018-03-28 01:32:49 +02:00
package routetests
2017-06-14 22:13:30 +02:00
2017-06-30 18:12:14 +02:00
var routeTests = map[string][]string{
2017-06-14 22:13:30 +02:00
// User
2019-04-23 14:52:55 +09:00
"/user/:nick": {
2017-06-14 22:13:30 +02:00
"/+Akyoto",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2021-11-22 18:58:13 +09:00
"/user/:nick/characters/liked": {
"/+Akyoto/characters/liked",
},
2018-04-19 17:48:15 +02:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/forum/threads": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/forum/threads",
// },
2017-06-14 22:13:30 +02:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/forum/posts": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/forum/posts",
// },
2017-06-23 17:15:48 +02:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/soundtracks/added": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/soundtracks/added",
// },
2018-03-14 11:57:40 +01:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/soundtracks/added/from/:index": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/soundtracks/added/from/3",
// },
2021-11-22 18:58:13 +09:00
// "/user/:nick/soundtracks/liked": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/soundtracks/liked",
// },
2017-06-30 18:12:14 +02:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/soundtracks/liked/from/:index": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/soundtracks/liked/from/3",
// },
2021-11-22 18:58:13 +09:00
// "/user/:nick/quotes/added": {
2018-12-07 16:20:10 +09:00
// "/+Scott/quotes/added",
// },
2018-03-19 12:25:31 +01:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/quotes/added/from/:index": {
2018-12-07 16:20:10 +09:00
// "/+Scott/quotes/added/from/3",
// },
2018-03-19 12:25:31 +01:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/quotes/liked": {
2018-12-07 16:20:10 +09:00
// "/+Scott/quotes/liked",
// },
2018-03-19 12:25:31 +01:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/quotes/liked/from/:index": {
2018-12-07 16:20:10 +09:00
// "/+Scott/quotes/liked/from/3",
// },
2018-03-19 12:25:31 +01:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/followers": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/followers",
// },
2017-10-01 07:24:56 +02:00
2021-11-22 18:58:13 +09:00
// "/user/:nick/stats": {
2018-12-07 16:20:10 +09:00
// "/+Akyoto/stats",
// },
2017-10-01 07:24:56 +02:00
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/anime/:id": {
2018-04-04 21:35:29 +02:00
"/+Akyoto/animelist/anime/74y2cFiiR",
2017-06-21 20:33:57 +02:00
},
2017-06-20 14:16:23 +02:00
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/watching": {
2017-07-05 21:23:59 +02:00
"/+Akyoto/animelist/watching",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/watching/from/:index": {
"/+Akyoto/animelist/watching/from/1",
2018-03-23 04:12:06 +01:00
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/completed": {
2017-07-05 21:23:59 +02:00
"/+Akyoto/animelist/completed",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/completed/from/:index": {
2018-03-23 04:12:06 +01:00
"/+Akyoto/animelist/completed/from/3",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/planned": {
2017-07-05 21:23:59 +02:00
"/+Akyoto/animelist/planned",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/planned/from/:index": {
2018-03-23 04:12:06 +01:00
"/+Akyoto/animelist/planned/from/3",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/hold": {
2017-07-05 21:23:59 +02:00
"/+Akyoto/animelist/hold",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/hold/from/:index": {
2018-03-23 04:12:06 +01:00
"/+Akyoto/animelist/hold/from/3",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/dropped": {
2017-07-05 21:23:59 +02:00
"/+Akyoto/animelist/dropped",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/animelist/dropped/from/:index": {
2018-03-23 04:12:06 +01:00
"/+Akyoto/animelist/dropped/from/3",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/anime/recommended": {
2018-12-07 16:20:10 +09:00
"/+Akyoto/anime/recommended",
},
2019-04-23 14:52:55 +09:00
"/user/:nick/anime/sequels": {
2018-12-07 16:20:10 +09:00
"/+Akyoto/anime/sequels",
2018-02-27 20:38:13 +01:00
},
2019-04-23 14:52:55 +09:00
"/users/country/:country": {
2018-11-06 20:20:19 +09:00
"/users/country/japan",
},
2017-06-14 22:13:30 +02:00
// Pages
2019-04-23 14:52:55 +09:00
"/anime/:id": {
2018-04-04 21:35:29 +02:00
"/anime/74y2cFiiR",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/anime/:id/characters": {
2018-04-04 21:35:29 +02:00
"/anime/74y2cFiiR/characters",
2017-10-22 17:02:36 +02:00
},
2019-04-23 14:52:55 +09:00
"/anime/:id/episodes": {
2018-04-04 21:35:29 +02:00
"/anime/74y2cFiiR/episodes",
2017-10-22 17:02:36 +02:00
},
2019-04-23 14:52:55 +09:00
"/anime/:id/comments": {
2018-11-01 17:17:58 +09:00
"/anime/74y2cFiiR/comments",
},
2019-04-23 14:52:55 +09:00
"/anime/:id/tracks": {
2018-04-04 21:35:29 +02:00
"/anime/74y2cFiiR/tracks",
2017-10-22 17:02:36 +02:00
},
2019-04-23 14:52:55 +09:00
"/anime/:id/relations": {
2018-04-25 20:23:35 +02:00
"/anime/74y2cFiiR/relations",
},
2019-04-23 14:52:55 +09:00
"/thread/:id": {
"/thread/HJgS7c2K",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/post/:id": {
"/post/B1RzshnK",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/forum/:tag": {
2017-06-14 22:13:30 +02:00
"/forum/general",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/genre/:name": {
2018-07-04 18:43:51 +09:00
"/genre/action",
},
2019-04-23 14:52:55 +09:00
"/company/:id": {
2018-07-04 18:43:51 +09:00
"/company/xCAUr7UkRaz",
},
2019-04-23 14:52:55 +09:00
"/company/:id/history": {
2018-07-04 18:43:51 +09:00
"/company/xCAUr7UkRaz/history",
},
2019-04-23 14:52:55 +09:00
"/companies/from/:index": {
2018-07-04 18:43:51 +09:00
"/companies/from/3",
},
2019-04-23 14:52:55 +09:00
"/explore/color/:color/anime": {
2018-07-04 18:43:51 +09:00
"/explore/color/hsl:0.050,0.25,0.5/anime",
},
2019-04-23 14:52:55 +09:00
"/explore/color/:color/anime/from/:index": {
2018-07-04 18:43:51 +09:00
"/explore/color/hsl:0.050,0.25,0.5/anime/from/3",
},
2019-04-23 14:52:55 +09:00
"/search/:term": {
2017-06-21 02:02:30 +02:00
"/search/Dragon Ball",
2017-06-21 20:33:57 +02:00
},
2017-06-21 02:02:30 +02:00
2019-04-23 14:52:55 +09:00
"/quote/:id": {
2018-02-26 12:48:25 +01:00
"/quote/gUZugd6zR",
},
2019-04-23 14:52:55 +09:00
"/quote/:id/edit": {
2018-02-26 12:48:25 +01:00
"/quote/gUZugd6zR/edit",
},
2019-04-23 14:52:55 +09:00
"/quote/:id/history": {
2018-04-25 20:23:35 +02:00
"/quote/gUZugd6zR/history",
},
2019-04-23 14:52:55 +09:00
"/quotes/from/:index": {
"/quotes/from/2",
},
2019-04-23 14:52:55 +09:00
"/quotes/best/from/:index": {
"/quotes/best/from/2",
},
2019-04-23 14:52:55 +09:00
"/soundtrack/:id": {
2017-07-16 07:50:57 +02:00
"/soundtrack/h0ac8sKkg",
2017-06-30 18:12:14 +02:00
},
2019-04-23 14:52:55 +09:00
"/soundtrack/:id/lyrics": {
2018-04-25 20:23:35 +02:00
"/soundtrack/vS64GbpzR/lyrics",
},
2019-04-23 14:52:55 +09:00
"/soundtrack/:id/edit": {
2017-10-22 17:02:36 +02:00
"/soundtrack/h0ac8sKkg/edit",
},
2019-04-23 14:52:55 +09:00
"/soundtrack/:id/history": {
2018-03-23 04:12:06 +01:00
"/soundtrack/h0ac8sKkg/history",
},
2019-04-23 14:52:55 +09:00
"/soundtracks": {
2018-03-23 04:12:06 +01:00
"/soundtracks",
},
2019-04-23 14:52:55 +09:00
"/soundtracks/from/:index": {
2017-10-22 17:02:36 +02:00
"/soundtracks/from/12",
},
2019-04-23 14:52:55 +09:00
"/soundtracks/best": {
2018-03-23 04:12:06 +01:00
"/soundtracks/best",
},
2019-04-23 14:52:55 +09:00
"/soundtracks/best/from/:index": {
"/soundtracks/best/from/12",
},
2018-03-23 04:12:06 +01:00
2019-04-23 14:52:55 +09:00
"/soundtracks/tag/:tag": {
2018-03-23 04:12:06 +01:00
"/soundtracks/tag/moe",
},
2019-04-23 14:52:55 +09:00
"/soundtracks/tag/:tag/from/:index": {
2018-03-23 04:12:06 +01:00
"/soundtracks/tag/moe/from/3",
},
2019-04-23 14:52:55 +09:00
"/character/:id": {
2018-04-11 12:05:02 +02:00
"/character/dfrNQrmmg-",
},
2019-10-26 15:57:47 +09:00
"/episode/:id": {
"/episode/oFlqThKWga",
},
2019-04-23 14:52:55 +09:00
"/compare/animelist/:nick-1/:nick-2": {
2017-10-22 17:02:36 +02:00
"/compare/animelist/Akyoto/Scott",
},
2019-04-23 14:52:55 +09:00
"/explore/anime/:year/:season/:status/:type": {
2018-04-13 18:07:21 +02:00
"/explore/anime/2011/any/finished/tv",
},
2018-04-25 20:23:35 +02:00
// AMV
2019-04-23 14:52:55 +09:00
"/amv/:id": {
2018-04-25 20:23:35 +02:00
"/amv/07scvSWmg",
},
2019-04-23 14:52:55 +09:00
"/amv/:id/edit": {
2018-04-25 20:23:35 +02:00
"/amv/07scvSWmg/edit",
},
2019-04-23 14:52:55 +09:00
"/amv/:id/history": {
2018-04-25 20:23:35 +02:00
"/amv/07scvSWmg/history",
},
// AMVs
2019-04-23 14:52:55 +09:00
"/amvs/from/:index": {
2018-04-25 20:23:35 +02:00
"/amvs/from/3",
},
2019-04-23 14:52:55 +09:00
"/amvs/best/from/:index": {
2018-04-25 20:23:35 +02:00
"/amvs/best/from/3",
},
2018-04-07 00:11:29 +02:00
// Redirects
2019-04-23 14:52:55 +09:00
"/mal/anime/:id": {
2018-04-07 00:11:29 +02:00
"/mal/anime/33352",
},
2019-04-23 14:52:55 +09:00
"/kitsu/anime/:id": {
2018-04-07 00:11:29 +02:00
"/kitsu/anime/12230",
},
2019-04-23 14:52:55 +09:00
"/anilist/anime/:id": {
2018-04-07 00:11:29 +02:00
"/anilist/anime/21827",
},
2017-06-14 22:13:30 +02:00
// API
2019-04-23 14:52:55 +09:00
"/api/anime/:id": {
2018-04-04 21:35:29 +02:00
"/api/anime/74y2cFiiR",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/thread/:id": {
2017-06-14 22:13:30 +02:00
"/api/thread/HJgS7c2K",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/post/:id": {
2017-06-14 22:13:30 +02:00
"/api/post/B1RzshnK",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/animelist/:id": {
2017-06-14 22:13:30 +02:00
"/api/animelist/4J6qpK1ve",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/settings/:id": {
2017-06-14 22:13:30 +02:00
"/api/settings/4J6qpK1ve",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/user/:id": {
2017-06-14 22:13:30 +02:00
"/api/user/4J6qpK1ve",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2019-04-23 14:52:55 +09:00
"/api/googletouser/:id": {
2017-06-17 00:33:27 +02:00
"/api/googletouser/106530160120373282283",
2017-06-21 20:33:57 +02:00
},
2017-06-17 00:33:27 +02:00
2019-04-23 14:52:55 +09:00
"/api/nicktouser/:id": {
2017-06-17 00:33:27 +02:00
"/api/nicktouser/Akyoto",
2017-06-21 20:33:57 +02:00
},
2017-06-17 00:33:27 +02:00
2019-04-23 14:52:55 +09:00
"/api/soundtrack/:id": {
2017-06-30 18:12:14 +02:00
"/api/soundtrack/h0ac8sKkg",
},
2019-04-23 14:52:55 +09:00
"/api/animecharacters/:id": {
2018-04-04 21:35:29 +02:00
"/api/animecharacters/74y2cFiiR",
2017-10-01 07:24:56 +02:00
},
2019-04-23 14:52:55 +09:00
"/api/animerelations/:id": {
2018-04-04 21:35:29 +02:00
"/api/animerelations/74y2cFiiR",
2018-03-28 01:59:14 +02:00
},
2019-04-23 14:52:55 +09:00
"/api/amv/:id": {
2018-04-25 20:23:35 +02:00
"/api/amv/07scvSWmg",
},
2019-04-23 14:52:55 +09:00
"/api/character/:id": {
2018-04-11 23:10:41 +02:00
"/api/character/dfrNQrmmg-",
2017-10-01 07:24:56 +02:00
},
2019-04-23 14:52:55 +09:00
"/api/company/:id": {
2018-03-28 01:59:14 +02:00
"/api/company/xCAUr7UkRaz",
},
2019-04-23 14:52:55 +09:00
"/api/draftindex/:id": {
2018-03-28 01:59:14 +02:00
"/api/draftindex/4J6qpK1ve",
},
2019-04-23 14:52:55 +09:00
"/api/inventory/:id": {
2018-03-28 01:59:14 +02:00
"/api/inventory/4J6qpK1ve",
2017-10-01 07:24:56 +02:00
},
2019-04-23 14:52:55 +09:00
"/api/shopitem/:id": {
2018-03-28 01:59:14 +02:00
"/api/shopitem/pro-account-3",
},
2019-04-23 14:52:55 +09:00
"/api/notification/:id": {
2018-11-15 20:53:24 +09:00
"/api/notification/q6Y6eraig",
2018-03-28 01:59:14 +02:00
},
2019-04-23 14:52:55 +09:00
"/api/quote/:id": {
2018-03-28 01:59:14 +02:00
"/api/quote/GXp675zmR",
},
2019-04-23 14:52:55 +09:00
"/api/usernotifications/:id": {
2018-03-28 01:59:14 +02:00
"/api/usernotifications/4J6qpK1ve",
},
2019-04-23 14:52:55 +09:00
"/api/pushsubscriptions/:id": {
2018-03-28 01:59:14 +02:00
"/api/pushsubscriptions/4J6qpK1ve",
2017-10-01 07:24:56 +02:00
},
2017-06-17 00:33:27 +02:00
// Images
2019-04-23 14:52:55 +09:00
"/images/*file": {
"/images/elements/no-avatar.svg",
2017-06-21 20:33:57 +02:00
},
2017-06-14 22:13:30 +02:00
2017-10-03 04:24:01 +02:00
// Extra tests for higher coverage
2019-04-23 14:52:55 +09:00
"/_/+Akyoto": {
2017-10-03 04:24:01 +02:00
"/_/+Akyoto",
},
2019-04-23 14:52:55 +09:00
"/_/search/dragon": {
2017-10-03 04:24:01 +02:00
"/_/search/dragon",
},
2017-06-21 20:33:57 +02:00
}
2018-03-28 01:32:49 +02:00
// All returns which specific routes to test for a given generic route.
func All() map[string][]string {
return routeTests
}