kotlinx-benchmark
kotlinx-benchmark copied to clipboard
Annotation usage tests and error msg improvements
trafficstars
Introduces annotation tests and improves error messages to ensure the library behaves as expected across different use cases.
- [x] Verify failure & error message when using
@Paramonvalproperties. - [x] Verify success/failure & error clarity when using
@Paramon:- [x]
finalproperties. - [x]
privateproperties. - [x]
internalproperties.
- [x]
- [x] Verify success/failure & error clarity when using
@Benchmarkon:- [x]
finalmethods. - [x]
privatemethods. - [x]
internalmethods.
- [x]
- [x] Test behavior when a setup, teardown, or benchmark method takes:
- [x] A
Blackhole. - [ ] A
@Stateobject. - [x] An argument that is neither a
Blackholenor a@Stateobject.
- [x] A
- [x] Test for successful/error behavior when:
- [x] A method is marked with both
@Benchmarkand@Setup/@TearDown. - [x] A method is marked with both
@Setupand@TearDown.
- [x] A method is marked with both