aboutsummaryrefslogtreecommitdiff
path: root/hotline/news_test.go
AgeCommit message (Collapse)Author
2025-07-05Add comprehensive test coverage for news.go functionsJeff Halter
- Add table-driven tests for GetNewsArtListData, DataSize, NewsArtListData.Read, NewsArtList.Read, and newsPathScanner - Improve test coverage from 0% to 87.5%-100% for these functions - Add test for Field.DecodeNewsPath function - Fix NewsArtList.Read to return nil instead of io.EOF for proper io.Reader behavior - Add constants for NewsFlavorCount and improve code documentation
2024-07-17Extensive refactor, quality of life enhancementsJeff Halter
* Added ability to reload config, agreement, news, and user accounts without restarting the server by sending SIGHUP to the running process * Added ability to use modern unix or windows line breaks in Agreement.txt and MessageBoard.txt instead of classic MacOS `\r` breaks. * Extensive refactor towards swappable backends for the active server state * Extensive refactored towards making the hotline package generic and re-usable for alternate server implemenations * Fix bug where users whose accounts have been deleted would not be disconnected
2024-07-09Extensive refactor and clean upJeff Halter
2024-06-24Refactoring, cleanup, test backfillingJeff Halter
2024-06-17Update failing news testJeff Halter
2024-06-16Fix broken io.Reader implementationsJeff Halter
2024-06-09Convert more bespoke methods to io.Reader/io.Writer interfacesJeff Halter
2021-08-10Add tests and clean upJeff Halter