Skip to content
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

KON-151 Add Suppress Annotation Support #101

Merged
merged 31 commits into from
May 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
38e936a
Rename 'Check' to 'Assert'
nataliapeterwas Apr 26, 2023
a96171f
Upd annotations
nataliapeterwas Apr 26, 2023
e729ef1
add suppress check in Assert.kt
nataliapeterwas Apr 26, 2023
6137837
add complicated method to Assert and one test
nataliapeterwas Apr 26, 2023
ccd485e
add KoBaseDeclaration.parentDeclaration property and test for it
nataliapeterwas Apr 27, 2023
c25264c
add KoBaseDeclaration.hasParentDeclaration function and tests for it
nataliapeterwas Apr 27, 2023
47d6d23
add extensions for KoBaseDeclarationSequenceExt.kt
nataliapeterwas Apr 27, 2023
a0f93af
upd assert suppress tests
nataliapeterwas Apr 27, 2023
af84cc7
add first test (todo: upd it and add more)
nataliapeterwas Apr 27, 2023
4eed63e
Merge remote-tracking branch 'origin/main' into KON-85-add-suppress-a…
nataliapeterwas Apr 27, 2023
9591b47
fix after merge
nataliapeterwas Apr 27, 2023
a1b08ac
add new tests
nataliapeterwas Apr 28, 2023
657278a
Add correct tests
nataliapeterwas Apr 28, 2023
c51bf85
fix spotless
nataliapeterwas Apr 28, 2023
426ad6f
Merge remote-tracking branch 'origin/main' into KON-85-add-suppress-a…
nataliapeterwas Apr 28, 2023
f087cf7
fix after merge and add comment
nataliapeterwas Apr 28, 2023
e16ed24
Merge remote-tracking branch 'origin/main' into KON-85-add-suppress-a…
nataliapeterwas May 4, 2023
89adafc
fix after merge
nataliapeterwas May 4, 2023
d1bf121
add parent when we create declaration instance
nataliapeterwas May 4, 2023
cc04443
not override text in KoAnnotationDeclarationImpl
nataliapeterwas May 4, 2023
95b8502
rename snippets
nataliapeterwas May 4, 2023
da085c0
add parent parameter to constructor for all declarations
nataliapeterwas May 5, 2023
d53b680
add new logic in Assert.kt
nataliapeterwas May 5, 2023
b1045e2
fix spotless and detekt
nataliapeterwas May 5, 2023
1702cd6
remove unused methods
nataliapeterwas May 5, 2023
29c1831
fix spotless
nataliapeterwas May 5, 2023
11f6417
Merge remote-tracking branch 'origin/main' into KON-85-add-suppress-a…
nataliapeterwas May 5, 2023
c2d2e36
Merge remote-tracking branch 'origin/main' into KON-85-add-suppress-a…
nataliapeterwas May 6, 2023
8062e80
use `KoBaseDeclaration` instead of `KoBaseDeclarationImpl`
nataliapeterwas May 8, 2023
2969d70
remove `open` from parent parameter in KoDeclarationImpl
nataliapeterwas May 8, 2023
ea70d04
fix spotless and detekt
nataliapeterwas May 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Rename 'Check' to 'Assert'
nataliapeterwas committed Apr 26, 2023

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 38e936acd1a8133e5dc3913947e403be764d3481
Original file line number Diff line number Diff line change
@@ -59,5 +59,5 @@ private fun <E : KoBaseDeclaration> getCheckFailedMessage(failedDeclarations: Li
"${it.location} ($name $declarationType)"
}

return "Check '$testMethodName' has failed. Invalid declarations:\n$failedDeclarationsMessage"
return "Assert '$testMethodName' has failed. Invalid declarations:\n$failedDeclarationsMessage"
}