canonical / canonical/secboot

Refactor root package tests

Open
#329 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
23
Forks
29
Avg merge
2d 8h
Merged PRs (30d)
2

Description

I want to refactor the testing to be more in line with one of the recently added packages, eg, `plainkey`:

1. For `New*` functions, test the returned private values against statically compiled values.
2. For serialization tests, test the serialization against a statically contained value, such as a JSON string or sequence of bytes
3. For deserialization tests, test the deserialization against statically contained values to detect for backwards compatibility issues
4. Add unit tests for other features as usual.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.