From d5aa1421a4358f7fddbe19a34a60589c78a6a40c Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 29 Aug 2015 09:49:08 +0200 Subject: [PATCH] Stubs for pool testing --- .../autotests/donmai-pool-index.json | 16 ++++++++++++ .../autotests/konachan-pool-index.json | 1 + .../autotests/test_danbooru_pool.cpp | 20 +++++++++++++++ .../autotests/test_danbooru_pool.h | 25 +++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 src/libdanbooru/autotests/donmai-pool-index.json create mode 100644 src/libdanbooru/autotests/konachan-pool-index.json diff --git a/src/libdanbooru/autotests/donmai-pool-index.json b/src/libdanbooru/autotests/donmai-pool-index.json new file mode 100644 index 0000000..6e4d933 --- /dev/null +++ b/src/libdanbooru/autotests/donmai-pool-index.json @@ -0,0 +1,16 @@ +[ + { + "category": "collection", + "created_at": "2011-03-19T07:48:09.230-04:00", + "creator_id": 23727, + "creator_name": "TheMuffinMan", + "description": "For ladies who are more muscular than average.\r\n\r\nThis is NOT for pictures of girls intentionally drawn to look like men (e.g. Cho-Marisa with a beard, a Touhou girl drawn to look like Kenshiro).", + "id": 3160, + "is_active": true, + "is_deleted": false, + "name": "Muscle_Girls", + "post_count": 1411, + "post_ids": "841930 877661 685223 865561 867301 345625 851014 75903 63029 542353 535322 408480 408479 421117 386443 262787 507774 227092 227084 39504 858923 831153 803625 530145 319643 279861 15979 599577 252022 546753 358276 39515 798235 789009 760328 619937 586008 789441 768903 767407 766187 761453 759337 736737 728509 694966 716011 694469 688023 665496 664732 659287 644675 626730 623951 618708 618983 608787 607615 107042 107081 59019 191724 153819 153816 153812 153801 340404 856675 786082 287940 269398 249637 249568 192730 761665 761659 761654 753842 750425 732287 831322 703997 661897 646682 588951 577141 556228 484722 455346 447472 441952 438524 375273 373370 373368 328773 325757 324329 311099 887826 562117 790126 559147 759844 759460 759434 598108 636154 811571 896100 896869 896870 896867 896170 895774 896871 840969 900041 903836 900991 908741 911811 909359 908767 534342 479889 481790 914439 432075 135349 425198 914593 914673 407728 850008 920633 844188 828723 899496 921980 926496 928202 926040 759464 759436 746358 567083 931288 562909 338039 338038 678399 678365 931393 931745 931867 931634 931388 931353 931645 931741 932162 932289 932347 932334 932354 932306 932573 932754 932846 932324 932246 932323 933169 932333 933517 934670 934580 934575 934437 934211 933884 933791 934836 935218 935822 935430 937577 937235 785987 936940 938845 938830 938889 938838 720128 716830 687120 662860 662768 662760 660052 933745 940046 932383 945586 767418 942889 942514 945891 950402 943978 950450 950537 895784 906103 515383 739279 950534 546763 178126 283778 371037 215089 313151 955752 956226 955744 953766 954394 954688 953734 958797 959244 961931 961923 962742 572504 961944 964073 965703 964515 701114 976238 976233 976257 340398 610255 978412 976254 976909 978422 760109 976740 991302 942741 990916 339774 826652 1021570 1021567 1023919 1028160 1028921 1035729 1037991 1008977 1043282 670304 1046440 1049302 1049899 1011085 1041838 1065997 1056810 1077197 826334 1078239 1078240 1078241 1083478 769654 1085574 1086281 1083080 1090230 1093960 1095744 1095791 1095749 1096893 1085582 1068238 1066149 1050918 923964 1102382 605130 1105232 1107036 997987 1031140 1109382 1102383 1111738 1113506 1109698 1117554 1116547 1120912 1023540 847712 747978 801525 1099264 1082396 1124557 1109699 1042948 1126150 1085744 1125121 933592 1129853 1127926 566102 1132094 1133555 1135198 1135897 1136037 1139786 474515 1140312 1137618 1137265 1109186 1144099 1150614 1150955 1148681 981334 1154384 1154140 1156017 1153396 1159326 1159320 1159073 1142012 1139016 1139309 1160324 1161432 1165466 1130531 1160013 1168988 1160326 1167302 1159672 1144110 1171252 1170407 1174022 983058 1174434 1177291 228538 1176776 1174020 1177588 1180924 1135102 135607 1183127 317038 1171135 1174021 1189972 1192751 1193856 1046200 1173040 629114 1200760 1074303 1202347 1201618 323102 1211286 1193832 1211986 1213475 1214771 634781 1168429 1168298 1166244 1121435 1217998 86886 1133892 1222716 1222721 1222711 1220337 1215160 1228155 359576 1203338 1104181 1231736 1194471 1234474 1209160 51682 1237786 1235565 1239352 1213846 1239997 1239992 1238991 1240734 1240730 1250461 1249761 1088868 1260303 1176828 1083634 335665 1260328 1260327 1260329 1258035 1259604 1096884 553643 534976 553644 354305 59030 107319 81292 630047 1270091 1270136 1270983 1270699 1272936 1272057 1274689 1275577 1279156 1279176 1284570 1283969 1279280 1276146 1092176 1288505 1279971 1279980 1278195 1278196 1274656 1279154 1254324 1290205 1291077 1291075 1290970 1283916 1284176 1289657 1125534 1292050 1238803 1296085 332133 1308497 1308474 1278193 1310791 1310781 1310724 1314754 1314706 1305233 1317764 1318134 1317761 1317177 1309526 512783 1317828 1322909 1323293 1322914 1326039 1322893 1326768 1325617 1328680 1329832 1322892 1322886 1322881 1330680 1331038 544307 424241 1335228 1335401 1334926 1338724 1338512 1340187 1338728 1338729 1338695 1340203 1342065 1335528 1322890 1345931 1345929 1345933 1346255 1327645 1305585 1351274 1351285 1351290 1351884 1352034 1355864 1350035 1348364 1357307 1357873 1359773 1359774 1359775 1359778 1359779 384634 384632 384663 384667 384656 1342522 1360990 966801 1364163 971209 1365731 1368110 1368112 1348643 1369425 1370358 1367862 1370803 1369817 808044 1372531 1373169 836704 466504 1357903 281900 1383296 1385587 1388099 1391321 1336340 1393527 1396044 1396046 1396467 1396861 1397708 1397709 1397716 1392403 1391325 1398810 1391319 1308468 1398396 1402233 1402451 1403300 1402964 1402521 1405740 1405961 1406835 1406264 1407029 1407436 1409373 1409758 1412853 1413066 1413515 1414007 1414249 1413342 1412252 1411536 1401257 498111 350516 1414781 1417011 1417691 1417679 1417954 1422925 1419172 1418447 1424285 1423698 1425470 1426942 1423713 1427315 1421712 1427227 1429113 1426956 1425483 1424752 1433238 1432812 1434429 51683 1437043 281164 1437459 1433417 1404703 1441995 1443183 1443137 1442804 1430957 1430291 1443733 1444991 1446076 1399108 1446397 1447928 1446291 604111 1049106 1450491 1431073 1452923 1452931 1453065 1453075 1454057 1455025 1454750 1451473 1456204 1457347 1457586 1459903 1459902 1459905 1459983 1460871 1461662 1463106 1464772 1464597 1466876 1469050 1469228 1470506 1462768 1460786 1473443 1474182 1474282 1420888 1357896 1475025 1482635 1377255 1481435 96356 1481458 850262 1486912 1487425 1486379 1036185 967720 955630 1490769 1455360 1493546 1493200 1495476 1478604 1496514 1498194 1499037 1500243 1500386 630046 1503551 1501744 1465372 1507107 1507131 1498894 1499200 1510434 1511173 1511288 1511286 1510104 1475117 1515104 1505285 1505446 1506549 1516925 1517868 1518365 1510012 1496141 1522949 1522630 1525159 1525409 1530129 1530296 1530690 990566 1532792 1533516 1533512 1534763 1534768 1508822 1531341 1545319 683786 1546873 1550411 1546868 1546869 1546871 1550414 1550415 1552152 1552188 933748 1451679 1556235 1557475 1557697 1559979 1560420 1560873 1560872 1559989 1557312 1555409 1534807 1561155 1564684 1564716 1554168 1565226 1565569 1565896 1566379 1566697 802830 1568152 1569785 1570172 1570050 1533108 1573126 1572121 1577163 1576560 1583449 1440201 1516392 1575095 1586346 1587924 1587925 1594966 1592892 1597923 479685 1363838 1603191 1604131 1603984 1605351 1590599 1606757 1606818 1608754 1609876 1612936 1600455 1613816 1588727 1617099 1615802 1613749 1619579 1618229 1614870 1622249 1624737 1626759 1627645 1627547 1629950 1629951 1622579 1633500 1635697 39511 1638617 1639231 1639342 1641324 1641322 1641314 1641692 1643124 1641718 1634136 1648197 1609664 1650826 1650764 1654096 1654129 1654131 1473976 1656520 1657292 1655973 630044 1659530 1663753 1666230 1667166 1673585 1569227 1569223 1673978 1675286 1675287 1675288 1672010 1676636 1676641 1679469 1681202 1681349 1406370 1681973 1490978 1684041 1686022 1687039 1452751 1690375 1691118 1585611 1672811 1690534 1690378 1694271 1696523 1696726 1583168 1698322 1700206 1702839 1701416 1704151 1707664 1656383 1672208 1716046 1406065 1717312 1714832 1716836 1719367 1720195 1720650 1727155 1614816 1729424 1728602 1719407 1734549 1701418 1735683 1698008 1736015 1736014 1736013 1736012 1736007 1738495 1738500 1738502 1738506 1720558 1738419 1741724 1745227 1748721 1750440 1750287 1750282 1750670 1751529 1751455 1751456 1752157 689377 1756248 384651 1759380 1759381 1760277 1755683 1751778 1733000 1763742 1766711 1766720 1768027 1767338 1769418 1768553 1768554 1770694 1773214 1772584 1772599 1774093 1607331 1327965 1779699 1780710 1775298 1764636 1762046 1783960 1779616 1785584 1787846 1792273 1792604 1792246 1792239 1792240 896142 1641672 1795260 1641276 1794293 1796659 1792236 1747551 1804233 1804704 1805485 1805355 1804657 1693853 1804342 1810839 1810858 1810941 1804656 1812938 1813376 1813627 1797733 1599029 1818640 1819308 1822404 1823548 1477533 1825132 1827122 1828124 1818639 1827713 1830622 1830971 1833485 384626 1834525 1812935 1836330 1626787 1843877 1798677 1801160 1846051 1846593 1849190 1849838 91884 1839023 1854245 1855411 1856018 1857392 1322897 1857422 1858182 1856048 1858294 1841118 1858440 1858339 1860902 1860324 1860331 1865989 1867582 1868611 1871171 1871172 1871294 1871185 1565720 1874653 1877061 1877321 1823546 1877536 1883360 1885366 933513 413458 1890653 1890747 806900 1895345 1895816 1897253 1895337 1701857 1892787 1898360 1900589 1900735 1898783 1898780 1941428 1698179 1904904 1836326 1908505 1908898 1804910 1915569 1915352 1916574 1904591 1917566 1918361 1918495 1677920 462137 1923848 1919261 1924772 1926450 1925087 1929876 1907378 1893429 1929044 1932223 1932167 1929834 1866128 1933847 1932020 1934477 1936030 1936007 1934828 935567 1933071 1482302 1937135 1938809 1941287 1939424 1941282 1942490 1836337 1947135 1785693 1942931 1927786 1948644 1948608 1947773 1949274 1949391 1894137 1850536 1954707 1953412 1950443 1955807 1954744 1955901 1954841 1954839 1955805 1956359 1959437 1959444 1959450 1959519 1690377 1959327 1959521 1960050 1961240 1961239 1962466 1963088 1965058 1951573 1967219 1967551 1967623 1967805 1968118 1964422 1968786 1828239 1969690 1969011 1967465 1973984 1973203 1972848 1976313 1821607 1975526 1977957 1980006 1979688 1979687 1979116 1979680 1981003 1981648 1981509 1742714 1985029 1984682 1988236 1987940 1987834 1984495 1981630 1992479 1992481 1992485 1725893 1994579 1994642 1992744 1996648 1996597 1998439 2000555 2000528 2000737 2001741 666138 2002742 1998280 2003205 2005261 2004366 2005134 2005755 1997675 1999384 1999506 1994174 1996442 1996444 1996445 1996446 1996450 1637788 1910015 1969324 330911 1961198 395574 2008010 2008024 2008027 2008003 2008004 2008007 2008008 2008009 2013012 1418199 2015487 2014902 2015534 1854889 2015446 2016804 2018058 2018076 2018079 2018080 2018896 2021137 2021460 2020076 2023285 2023406 2023408 2023410 2023413 2021173 2024846 2024868 2027664 2029649 2029698 2030123 2028449 2028699 2030120 2027354 2028041 2028043 2028331 2028333 2024849 2032568 2032591 2028337 1264768 2035316 1938907 2037135 2038452 1849146 1837847 1836935 1692774 2039456 2040932 2040380 2040110 2039134 2036153 2015839 2014265 2037610 2038333 2031239 2045312 2045547 2046413 2048512 2047021 2046249 2051871 2053086 2053089 2054290 2052123 2051154 2051092 2054053 2054032 2052987 2052413 2052411 2056985 2059335 2056949 2055624 2059530 2059259 2040382 1883617 1893014 2065902 2066615 2072536 2072546 1726189 2073207 2072890 2073044 2072888 2069227 2067081 2066875 2064579 2055767 2072882 2077043 2074713 2078514 2078838 2078929 2060991 1641607 1643595 2081007 2081053 2081160 2082391 2083245 579083 694275 578821 694270 1679361 2006255 2084361 1650854 2077263 2085497 2077166 1911706 2088277 1829884 674995 2089164 2091123 2091125 2091130 2092392 2092893 2092896 2094202 2093432 2094204 2094449 2094455 2094458 2094481 2094488 2094602 1992519 2096413 2094535 2100152 2101087 2089165 1503197 2074938 2103987 2099658 2065152 1272460 2014097 2013813 2105930 2105917 2098993 2108238 2108429 2108427 2108760 2106666 2106272 2108272 288619", + "updated_at": "2015-08-29T03:41:25.801-04:00" + } +] diff --git a/src/libdanbooru/autotests/konachan-pool-index.json b/src/libdanbooru/autotests/konachan-pool-index.json new file mode 100644 index 0000000..11f183d --- /dev/null +++ b/src/libdanbooru/autotests/konachan-pool-index.json @@ -0,0 +1 @@ +[{"id":368,"name":"Ristorante_2014_Calendar","created_at":"2015-08-24T07:50:37.877Z","updated_at":"2015-08-24T17:59:21.149Z","user_id":20645,"is_public":true,"post_count":12,"description":"Bonus Omake from Doujin H-Voice Drama サキュバスなのに…癒し安眠? ふわふわ系サキュバスに心地よく包まれて癒されながら…エッチもしてもらうMP3 (release 2015年03月28日)"},{"id":364,"name":"Push!!_Illustration_Gathering","created_at":"2015-07-01T20:51:45.261Z","updated_at":"2015-07-18T08:22:33.631Z","user_id":20645,"is_public":true,"post_count":61,"description":""},{"id":363,"name":"Angel_Beats!_-1st_beat-","created_at":"2015-06-28T07:42:05.726Z","updated_at":"2015-07-10T03:45:30.290Z","user_id":11649,"is_public":true,"post_count":86,"description":"Visual Novel by Key"}] \ No newline at end of file diff --git a/src/libdanbooru/autotests/test_danbooru_pool.cpp b/src/libdanbooru/autotests/test_danbooru_pool.cpp index 8b13789..0de946f 100644 --- a/src/libdanbooru/autotests/test_danbooru_pool.cpp +++ b/src/libdanbooru/autotests/test_danbooru_pool.cpp @@ -1 +1,21 @@ +/* + * Copyright 2015 Luca Beltrame + * + * This file is part of Danbooru Client. + * + * Danbooru Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Danbooru Client is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Danbooru Client. If not, see . + * + */ +#include "test_danbooru_pool.h" diff --git a/src/libdanbooru/autotests/test_danbooru_pool.h b/src/libdanbooru/autotests/test_danbooru_pool.h index 8b13789..0a83fa9 100644 --- a/src/libdanbooru/autotests/test_danbooru_pool.h +++ b/src/libdanbooru/autotests/test_danbooru_pool.h @@ -1 +1,26 @@ +/* + * Copyright 2015 Luca Beltrame + * + * This file is part of Danbooru Client. + * + * Danbooru Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Danbooru Client is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Danbooru Client. If not, see . + * + */ +#ifndef TEST_DANBOORUPOOL_H +#define TEST_DANBOORUPOOL_H + + + +#endif