-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add maven, gradle and cli integration tests for documentedVisibilities
- Loading branch information
1 parent
398fe2d
commit fc47d3e
Showing
21 changed files
with
312 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
integration-tests/cli/projects/it-cli/src/main/kotlin/it/internal/InternalClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package it.internal | ||
|
||
/** | ||
* §INTERNAL§ (marker for asserts) | ||
* This class is internal and should not be rendered | ||
*/ | ||
internal class InternalClass |
12 changes: 12 additions & 0 deletions
12
...-tests/cli/projects/it-cli/src/main/kotlin/it/overriddenVisibility/VisiblePrivateClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.overriddenVisibility | ||
|
||
/** | ||
* Private classes and methods generally should not be visible, but [documentedVisibilities] | ||
* are overriden for this specific package to include private code | ||
* | ||
* §PRIVATE§ (marker for asserts) | ||
*/ | ||
private class VisiblePrivateClass { | ||
private val privateVal: Int = 0 | ||
private fun privateMethod() {} | ||
} |
10 changes: 10 additions & 0 deletions
10
integration-tests/cli/projects/it-cli/src/main/kotlin/it/protected/ProtectedClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package it.protected | ||
|
||
/** | ||
* Protected class should be visible because it's included in documentedVisibilities | ||
* | ||
* §PROTECTED§ (marker for asserts) | ||
*/ | ||
protected class ProtectedClass { | ||
protected fun protectedFun(): String = "protected" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
integration-tests/gradle/projects/it-basic/src/main/kotlin/it/internal/InternalClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package it.internal | ||
|
||
/** | ||
* §INTERNAL§ | ||
* §INTERNAL§ (marker for asserts) | ||
* This class is internal and should not be rendered | ||
*/ | ||
internal class InternalClass |
12 changes: 12 additions & 0 deletions
12
...s/gradle/projects/it-basic/src/main/kotlin/it/overriddenVisibility/VisiblePrivateClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.overriddenVisibility | ||
|
||
/** | ||
* Private classes and methods generally should not be visible, but [documentedVisibilities] | ||
* are overriden for this specific package to include private code | ||
* | ||
* §PRIVATE§ (marker for asserts) | ||
*/ | ||
private class VisiblePrivateClass { | ||
private val privateVal: Int = 0 | ||
private fun privateMethod() {} | ||
} |
10 changes: 10 additions & 0 deletions
10
integration-tests/gradle/projects/it-basic/src/main/kotlin/it/protected/ProtectedClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package it.protected | ||
|
||
/** | ||
* Protected class should be visible because it's included in documentedVisibilities | ||
* | ||
* §PROTECTED§ (marker for asserts) | ||
*/ | ||
protected class ProtectedClass { | ||
protected fun protectedFun(): String = "protected" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
integration-tests/maven/projects/it-maven/src/main/kotlin/it/internal/InternalClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package it.internal | ||
|
||
/** | ||
* §INTERNAL§ (marker for asserts) | ||
* This class is internal and should not be rendered | ||
*/ | ||
internal class InternalClass |
12 changes: 12 additions & 0 deletions
12
...ts/maven/projects/it-maven/src/main/kotlin/it/overriddenVisibility/VisiblePrivateClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.overriddenVisibility | ||
|
||
/** | ||
* Private classes and methods generally should not be visible, but [documentedVisibilities] | ||
* are overriden for this specific package to include private code | ||
* | ||
* §PRIVATE§ (marker for asserts) | ||
*/ | ||
private class VisiblePrivateClass { | ||
private val privateVal: Int = 0 | ||
private fun privateMethod() {} | ||
} |
Oops, something went wrong.