363 lines
15 KiB
JSON
363 lines
15 KiB
JSON
{
|
|
"duration": "11.335346958s",
|
|
"stats": {
|
|
"total": 25,
|
|
"passed": 25,
|
|
"failed": 0,
|
|
"skipped": 0
|
|
},
|
|
"suites": [
|
|
{
|
|
"name": "签到功能",
|
|
"results": [
|
|
{
|
|
"name": "空数据查询-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 90,
|
|
"func": "testQueryEmpty",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":0,\"cumulativeDays\":0,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:19:58.522Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "空数据-todayChecked=false",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 95,
|
|
"func": "testQueryEmpty",
|
|
"got": false,
|
|
"want": false
|
|
},
|
|
{
|
|
"name": "空数据-连续=0",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 96,
|
|
"func": "testQueryEmpty",
|
|
"got": 0,
|
|
"want": 0
|
|
},
|
|
{
|
|
"name": "空数据-累计=0",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 97,
|
|
"func": "testQueryEmpty",
|
|
"got": 0,
|
|
"want": 0
|
|
},
|
|
{
|
|
"name": "连续3天-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 112,
|
|
"func": "testContinuous3Days",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":3,\"cumulativeDays\":3,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:19:59.645Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "连续3天-todayChecked=false",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 115,
|
|
"func": "testContinuous3Days",
|
|
"got": false,
|
|
"want": false
|
|
},
|
|
{
|
|
"name": "连续3天-continuously=3",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 116,
|
|
"func": "testContinuous3Days",
|
|
"got": 3,
|
|
"want": 3
|
|
},
|
|
{
|
|
"name": "连续3天-cumulative=3",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 117,
|
|
"func": "testContinuous3Days",
|
|
"got": 3,
|
|
"want": 3
|
|
},
|
|
{
|
|
"name": "断签-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 129,
|
|
"func": "testBrokenStreak",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":0,\"cumulativeDays\":2,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:00.972Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "断签-continuously=0",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 131,
|
|
"func": "testBrokenStreak",
|
|
"got": 0,
|
|
"want": 0
|
|
},
|
|
{
|
|
"name": "断签-cumulative=2",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 132,
|
|
"func": "testBrokenStreak",
|
|
"got": 2,
|
|
"want": 2
|
|
},
|
|
{
|
|
"name": "断一天-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 144,
|
|
"func": "testBrokenStreakOneDayGap",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":1,\"cumulativeDays\":2,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:02.170Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "断一天-continuously=1",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 146,
|
|
"func": "testBrokenStreakOneDayGap",
|
|
"got": 1,
|
|
"want": 1
|
|
},
|
|
{
|
|
"name": "断一天-cumulative=2",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 147,
|
|
"func": "testBrokenStreakOneDayGap",
|
|
"got": 2,
|
|
"want": 2
|
|
},
|
|
{
|
|
"name": "跨月-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 160,
|
|
"func": "testCrossMonthContinuous",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":0,\"cumulativeDays\":3,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:03.531Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "跨月-continuously=0",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 162,
|
|
"func": "testCrossMonthContinuous",
|
|
"got": 0,
|
|
"want": 0
|
|
},
|
|
{
|
|
"name": "今天已签到-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 180,
|
|
"func": "testTodayChecked",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":3,\"cumulativeDays\":3,\"doubleReward\":false,\"todayChecked\":true},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:04.950Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "今天已签到-todayChecked=true",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 182,
|
|
"func": "testTodayChecked",
|
|
"got": true,
|
|
"want": true
|
|
},
|
|
{
|
|
"name": "今天已签到-continuously=3",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 183,
|
|
"func": "testTodayChecked",
|
|
"got": 3,
|
|
"want": 3
|
|
},
|
|
{
|
|
"name": "双倍奖励-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 201,
|
|
"func": "testDoubleReward",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":6,\"cumulativeDays\":6,\"doubleReward\":true,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:06.570Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "6天连续+未签到-doubleReward=true",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 203,
|
|
"func": "testDoubleReward",
|
|
"got": true,
|
|
"want": true
|
|
},
|
|
{
|
|
"name": "6天连续-continuously=6",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 204,
|
|
"func": "testDoubleReward",
|
|
"got": 6,
|
|
"want": 6
|
|
},
|
|
{
|
|
"name": "断签恢复-code=200",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 222,
|
|
"func": "testCheckinAfterBroken",
|
|
"got": 200,
|
|
"want": 200,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:13051/api/app/checkin/prize",
|
|
"headers": {
|
|
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lc3RhbXAiOjE3NzgxNTk5OTcsInR5cGUiOjAsInVpZCI6MzAwMTAwfQ.INz0ZZ2ZoGM7FnncWzec2jDZwQGbL8lJEoI6LETadAM",
|
|
"Content-Type": "application/json",
|
|
"User-Agent": "91porn/3.8.0 (Android; test)",
|
|
"X-User-Agent": "ver=3.8.0\u0026sysType=android\u0026devType=test\u0026devId=checkin-test-001"
|
|
},
|
|
"body": "{}"
|
|
},
|
|
"response": {
|
|
"statusCode": 200,
|
|
"body": "{\"code\":200,\"data\":{\"bigPrizes\":[],\"checkin\":{\"continuouslyDays\":1,\"cumulativeDays\":3,\"doubleReward\":false,\"todayChecked\":false},\"config\":{\"backgroundImage\":\"\",\"description\":\"测试签到配置\",\"enable\":true,\"integerExchangeList\":null},\"prizes\":[]},\"hash\":false,\"msg\":\"success\",\"time\":\"2026-05-07T13:20:08.267Z\",\"tip\":\"\"}"
|
|
}
|
|
},
|
|
{
|
|
"name": "断签恢复-continuously=1",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 224,
|
|
"func": "testCheckinAfterBroken",
|
|
"got": 1,
|
|
"want": 1
|
|
},
|
|
{
|
|
"name": "断签恢复-cumulative=3",
|
|
"passed": true,
|
|
"file": "tests/checkin/suite_checkin.go",
|
|
"line": 225,
|
|
"func": "testCheckinAfterBroken",
|
|
"got": 3,
|
|
"want": 3
|
|
}
|
|
],
|
|
"elapsed": 11335345667
|
|
}
|
|
],
|
|
"time": "2026-05-07T21:20:08+08:00"
|
|
} |