diff options
| author | Martin Hořeňovský | 2024-08-05 20:13:03 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-08-05 20:13:03 +0200 |
| commit | 8898cc61601af6cdd5b4548dd91ccf70ed67f3c2 (patch) | |
| tree | 1269e5a9f627a5bd400dcb2ad8a30b93cb7fc400 | |
| parent | f7cd0ba0511b61592e70f07533d7ea30a8a5395d (diff) | |
| download | catch3-8898cc61601af6cdd5b4548dd91ccf70ed67f3c2.tar.gz | |
Mark non-const function for TEST_CASE_METHOD as deprecated
| -rw-r--r-- | docs/deprecations.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/deprecations.md b/docs/deprecations.md index 1fb79aaa..0b5bee13 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -35,6 +35,19 @@ being aborted (when using `--abort` or `--abortx`). It is however **NOT** invoked for test cases that are [explicitly skipped using the `SKIP` macro](skipping-passing-failing.md#top). + +### Non-const function for `TEST_CASE_METHOD` + +> Deprecated in Catch2 vX.Y.Z + +Currently, the member function generated for `TEST_CASE_METHOD` is +not `const` qualified. In the future, the generated member function will +be `const` qualified, just as `TEST_CASE_PERSISTENT_FIXTURE` does. + +If you are mutating the fixture instance from within the test case, and +want to keep doing so in the future, mark the mutated members as `mutable`. + + --- [Home](Readme.md#top) |