-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct null handling when using a custom comparer #2489
Correct null handling when using a custom comparer #2489
Conversation
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2.8
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Src/FluentAssertions/Equivalency/Steps/EqualityComparerEquivalencyStep.cs
Outdated
Show resolved
Hide resolved
…he expectation. Also added more tests for all cases.
Can anyone help me? I don't understand the error message in Qodana. |
Try rebase at the current From my understanding, a qodana report without a summary (like here) happens, if the default branch (here |
Qodana for .NET4 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Src/FluentAssertions/Equivalency/Steps/EqualityComparerEquivalencyStep.cs
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 7357619396Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com>
Src/FluentAssertions/Equivalency/Steps/EqualityComparerEquivalencyStep.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com>
Qodana for .NET58 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
A few qodana issues are left :) |
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
…2489) * Correct null handling when having a nullable struct propertywith a custom comparer. fluentassertions#2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
* Correct null handling when having a nullable struct propertywith a custom comparer. #2480 * Release notes added * typo corrected * Removed the check for only value types and added the null check for the expectation. Also added more tests for all cases. * typo corrected * Warnings solved * Added a comment for the changed code * Comment cleaned * Update docs/_pages/releases.md Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> * Typo corrected Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> * Corrected Qodana issues * cleanups --------- Co-authored-by: Martin Demberger <martin.demberger@root-nine.de> Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com> Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.com> Co-authored-by: Jonas Nyrup <jnyrup@gmail.com>
Currently a custom comparer surpresses the
BeEquivalent
compare with a nullable struct property against a expectednull
value.This change doesn't use the custom comparer for a struct with a expected
null
.#2480
IMPORTANT
./build.sh --target spellcheck
or.\build.ps1 --target spellcheck
before pushing and check the good outcome