1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 10:56:25 -07:00
Commit graph

1453 commits

Author SHA1 Message Date
Eggbertx
fdf892bec2 Update version number for release 2024-04-16 10:58:36 -07:00
Eggbertx
1d81a1ee40 Use PARAM_ATON replacer in GetBuildablePostsByIP 2024-04-16 10:40:49 -07:00
Eggbertx
7a65a68dd6 Add board page tests 2024-04-10 11:17:26 -07:00
Eggbertx
9c4f88c61a Add escaping string test for consts.js 2024-04-02 12:33:12 -07:00
Eggbertx
e446f2a5d7 Add tests for banpage.html template 2024-04-02 11:33:13 -07:00
Eggbertx
e44dc78ae5 Add templatetests package and start testing templates 2024-04-01 17:17:43 -07:00
Eggbertx
6191f971c3 Add base SQL test for InitTemplates 2024-04-01 12:38:49 -07:00
Eggbertx
e1650ab3e3 Add public function for creating sqlmock-based tests in other packages 2024-04-01 11:27:41 -07:00
Eggbertx
c9a8cb8780 Use pointer receiver for testutil.MockResponseWriter 2024-03-31 00:02:33 -07:00
Eggbertx
56dbc38164 Add minifier tests 2024-03-30 23:44:01 -07:00
Eggbertx
dc454d1bc1 Move some test utility functions to testutil 2024-03-30 22:07:38 -07:00
Eggbertx
3d19f9a088 Clean up unused code from events pkg 2024-03-30 18:17:09 -07:00
Eggbertx
14f3b5a48b Add lua tests for events 2024-03-30 18:14:35 -07:00
Eggbertx
45ba890280 Refactor gcsql tests to clean them up a bit 2024-03-30 17:25:19 -07:00
Eggbertx
521296ed29 Add test for ApproveAppeal 2024-03-30 16:25:37 -07:00
Eggbertx
bcfa5f4269 Add GetAppeals tests 2024-03-30 13:29:02 -07:00
Eggbertx
cf19943008 remove testdata dir from gcsql as it's no longer needed (using sqlmock now) 2024-03-30 12:09:17 -07:00
Eggbertx
ab1606b035 Add provisioning tests for Postgres and SQLite3 2024-03-30 12:02:15 -07:00
Eggbertx
beca22cbf6 start breaking up long mock query lines 2024-03-29 16:52:56 -07:00
Eggbertx
1ef35975dc Add basic test for buildNewDatabase("mysql") 2024-03-29 16:44:41 -07:00
Eggbertx
84aa7978be Handle error returned by setupDBConn 2024-03-29 09:51:23 -07:00
Eggbertx
1417695dcc Add sqlmock tests 2024-03-28 23:04:22 -07:00
Eggbertx
02e1533d09 Add webPathDir and makeLoop template function tests 2024-03-28 16:35:53 -07:00
Eggbertx
1e1ba94464 Add lua tests for gctemplates 2024-03-28 13:55:09 -07:00
Eggbertx
a9de4c4abb render all inner nodes to buffer instead of using regular expression to remove body tag 2024-03-27 22:57:35 -07:00
Eggbertx
36a5b2f5a3 add test for map template function 2024-03-27 22:31:24 -07:00
Eggbertx
71313947da use table driven test for gcutil_test.go 2024-03-27 22:13:55 -07:00
Eggbertx
0cc4785ac9 Add tests for template functions, improve truncateHTMLMessage 2024-03-27 21:24:21 -07:00
Eggbertx
8464c2447c Fix template issues with pointer/non-pointer receivers 2024-03-27 11:13:31 -07:00
Eggbertx
34e6887490 Start adding template function tests 2024-03-26 22:51:58 -07:00
Eggbertx
e5bbcc6493 Use subtests for IP range testing 2024-03-26 22:21:33 -07:00
Eggbertx
4917fdf3da Separate template functions 2024-03-26 17:49:22 -07:00
Eggbertx
09dfa2c3da Move init functions that only use public functions to dedicated subdirectories 2024-03-26 17:10:33 -07:00
Eggbertx
67e4d9d263 Remove config.SetDefaults 2024-03-26 17:05:21 -07:00
Eggbertx
b8ae6147e8 update go dependencies 2024-03-26 16:32:05 -07:00
Eggbertx
3167b97db4 Update announcements table style 2024-03-18 12:55:09 -07:00
Eggbertx
bd6992cb87 Make zerolog error Event usage more consistent (Caller on the same line as Err) 2024-03-18 12:41:03 -07:00
Eggbertx
c2d834c712 Remove nil dereference 2024-03-16 20:22:46 -07:00
Eggbertx
90b98c76de Create event for reloading board and section arrays 2024-03-13 14:58:22 -07:00
Eggbertx
be3cd50c08 Move flag attaching to separate function 2024-03-13 13:58:36 -07:00
Eggbertx
4b5ea350eb Start moving template functions to their respective packages 2024-03-13 13:41:15 -07:00
Eggbertx
f16fa39770 Use t.Setenv instead of os.Setenv 2024-03-13 10:37:15 -07:00
Eggbertx
b0a19402a8 Add some more tests to gcutil, remove some unused functions 2024-03-13 10:34:13 -07:00
Eggbertx
def421a176 Fix IP subnet range testing, properly check IP length 2024-03-12 13:17:57 -07:00
Eggbertx
2d0b758a14 Use CSS on tables instead of border HTML attribute, standardize table headers 2024-03-08 14:50:28 -08:00
Eggbertx
ed38e6a6e8 Fix plugin building bug in build.py 2024-03-08 12:48:01 -08:00
Eggbertx
80f2b98147 Improve performance on gcutil.ParseIPRange for IPv6 2024-03-08 12:44:53 -08:00
Eggbertx
9029163c40 Update configuration documentation with GeoIP and fingerprinting 2024-03-05 22:09:14 -08:00
Eggbertx
d74479298c Update plugin API documentation 2024-03-05 21:54:15 -08:00
Eggbertx
cc5f1ec07f Clean up build.py some more, bump version to 3.10 2024-03-05 21:37:45 -08:00