Commit Graph

695 Commits

Author SHA1 Message Date
5bf9d72518 Add comprehensive tests for sha256 marshalling and unmarshalling
Introduce tests to verify `MarshalBinary` and `UnmarshalBinary` behavior, covering block boundary cases, data integrity after state restoration, and error handling for invalid inputs. These tests ensure correctness for diverse data sizes, edge cases, and error scenarios.
2025-06-26 21:28:52 +01:00
a7944e054c Add unit tests and improve handling in socketapi package
Introduced comprehensive test coverage for `socketapi` functions, including `handleEvent` and `handleReq` logic. Enhanced `publisher` and `handleEvent` to ensure better filter and event validation, and made minor bug fixes to public key matching logic.
2025-06-26 21:20:36 +01:00
779bc99041 Fix NewId error message and add comprehensive tests
Updated the error message in `NewId` to reflect the correct input length and introduced extensive test coverage for `NewId`, `IsValid`, `Marshal`, and `Unmarshal`. This ensures accurate behavior verification for edge cases and robustness of ID handling.
2025-06-26 20:57:51 +01:00
7efa63cd95 Add extensive unit tests for tag functionality
This commit introduces comprehensive unit tests covering constructors, accessors, mutators, edge cases, and error handling for the tag module. It ensures robust validation of methods like `New`, `Append`, `Clone`, `StartsWith`, `Unmarshal`, and more, improving overall reliability and code coverage.
2025-06-26 20:53:51 +01:00
03f44c1f59 Add comprehensive edge case tests for unmarshaling functions
New tests cover edge cases and error scenarios for `UnmarshalQuoted`,
`UnmarshalHexArray`, `UnmarshalStringArray`, `Less` method in `tags`,
and `Marshal`/`Unmarshal` methods in `atag`. These tests improve
overall test coverage and ensure error handling is robust.
2025-06-26 20:45:10 +01:00
f532560d5b fully test tags 2025-06-26 20:34:42 +01:00
028975da55 fully test text package and fix a few bugs 2025-06-26 20:17:15 +01:00
2d42bdc351 add full set of tests for timestamp 2025-06-26 20:01:29 +01:00
a195f74a74 add tests for 100% coverage of all cases 2025-06-26 19:48:25 +01:00
ec0d5cceb0 fix small bug, 100% test coverage 2025-06-26 19:35:45 +01:00
9c4013d25d add tests to ws package for full coverage 2025-06-26 19:28:09 +01:00
a89bd5a633 fixing tests 2025-06-26 18:29:28 +01:00
178150407e improve test coverage and fix some bugs in envelopes 2025-06-26 18:11:42 +01:00
6c21551f29 validate and fix env variable parsing 2025-06-26 17:51:32 +01:00
6392dd8edf validate and correct nip-04 and nip-44 encryption code 2025-06-26 17:38:09 +01:00
8dd3deb811 fix issues with timestamp type 2025-06-26 17:24:28 +01:00
fc462031d7 test all dns nip-05 and fix bugs 2025-06-26 17:16:47 +01:00
1cf2094634 test all keyvalue and fix bugs 2025-06-26 15:56:43 +01:00
35b488e59d test config 2025-06-26 15:54:47 +01:00
85c1af4fa7 test all bunker and fix bugs 2025-06-26 15:49:50 +01:00
2b2408cbc6 test all bech32encoding and fix bugs 2025-06-26 15:17:17 +01:00
ed1ca7e3e3 test auth 2025-06-26 15:00:56 +01:00
c0c29025c0 test addresstag 2025-06-26 14:50:18 +01:00
2ab4668121 removed all the auth things 2025-06-24 18:39:32 +01:00
89c952a9aa remove counter keys 2025-05-25 18:57:54 +01:00
66cae09d6e maybe fix some memory bloat issues 2025-05-24 21:07:49 +01:00
fc7a40a1b7 add save-after-auth and eliminate mute list 2025-05-24 20:42:40 +01:00
56ecfe11a8 add save-after-auth and eliminate mute list v1.19.0 2025-05-24 18:28:01 +01:00
0b467c35c7 debugging why stuff isn't working 2025-05-24 14:36:47 +01:00
2a2cfa8d69 remove noisy log on acceptevent.go v1.18.6 2025-05-24 14:12:25 +01:00
3c9c80268d fix path in non-cgo 2025-05-24 13:41:06 +01:00
e173d50570 debugging auth 2025-05-24 12:02:15 +01:00
767233754a log who is authed in handleEvent.go 2025-05-24 11:34:05 +01:00
64f245b0c2 fix all potential bugs in tag and tags 2025-05-24 11:06:49 +01:00
5e71427e88 hunting bug in access counter 2025-05-24 04:24:46 +01:00
92b45ccfdc hunting bug in delete code v1.18.5 2025-05-24 03:40:23 +01:00
4f9f65b59c hunting bug in delete code 2025-05-24 03:38:20 +01:00
a2f6617a2e hunting bug in delete code 2025-05-24 03:21:59 +01:00
2e2ad96ff2 hunting bug in delete code 2025-05-24 03:17:43 +01:00
a2e1b1649d hunting bug in delete code 2025-05-24 03:12:29 +01:00
7180a240cc hunting bug in delete code 2025-05-24 03:04:07 +01:00
4f3285789b analyse and sort by lowest distance and highest sequence 2025-05-19 04:57:57 -01:06
fcaeedd0f7 fix auth sequence for event publish v1.18.4 2025-05-17 06:43:10 -01:06
09fc0a1029 theoretically implemented fulltext search 2025-05-17 06:33:49 -01:06
b39d47b2d5 fix to stop deleting delete events v1.18.3 2025-05-14 22:14:52 -01:06
4e4d0b5997 update fulltext to moar fields, fix auth bug v1.18.2 2025-05-14 20:25:55 -01:06
35012590a3 simplify fulltext keys to just be values 2025-05-14 11:42:53 -01:06
4d4505ffd6 fixed fulltext/langs indexing to run on save and rescan 2025-05-14 09:43:20 -01:06
80162bea84 refactor index rescan and add fulltext and lang indexes 2025-05-13 19:38:00 -01:06
001ccb0d5b completed language tag indexer 2025-05-13 17:29:19 -01:06