kotlinx-benchmark icon indicating copy to clipboard operation
kotlinx-benchmark copied to clipboard

Annotation usage tests and error msg improvements

Open wldeh opened this issue 2 years ago • 0 comments
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 @Param on val properties.
  • [x] Verify success/failure & error clarity when using @Param on:
    • [x] final properties.
    • [x] private properties.
    • [x] internal properties.
  • [x] Verify success/failure & error clarity when using @Benchmark on:
    • [x] final methods.
    • [x] private methods.
    • [x] internal methods.
  • [x] Test behavior when a setup, teardown, or benchmark method takes:
    • [x] A Blackhole.
    • [ ] A @State object.
    • [x] An argument that is neither a Blackhole nor a @State object.
  • [x] Test for successful/error behavior when:
    • [x] A method is marked with both @Benchmark and @Setup/@TearDown.
    • [x] A method is marked with both @Setup and @TearDown.

wldeh avatar Aug 30 '23 09:08 wldeh