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.
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.
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.
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.
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.