elast0ny / elast0ny/simple_parse

Write tests

Open
#2 1 comment 1 reaction 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Description

simple_parse relies on automatically generated code and unsafe implementations that have been manually validated to be safe.

It would provide an extra sense of "security" if we also had tests testing a bunch of different edge cases e.g. :

- Invalid lengths (Too short, too big)
- Invalid contents (Bad utf8 for strings, 0 for NonZero, etc...)
- Invalid alignment for references
- Etc...

This will be a pain to write manually so macros will probably have to be create to test each default implementation and then test the derived code containing those default impls

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.