Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for AbstractBinaryCompatibilityTest (0.15 sec)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

    import org.junit.Assert.assertFalse
    import org.junit.Assert.assertTrue
    import org.junit.Rule
    import org.junit.rules.TemporaryFolder
    import java.io.File
    import java.nio.file.Files
    
    
    abstract class AbstractBinaryCompatibilityTest {
    
        @get:Rule
        val tmpDir = TemporaryFolder()
    
        private
        val rootDir: File
            get() = tmpDir.root
    
        internal
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AnonymousClassesFilteringTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class AnonymousClassesFilteringTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `anonymous classes are excluded (java)`() {
    
            checkBinaryCompatibleJava(
                v1 = """
                    public class Source {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinModifiersChangeTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class KotlinModifiersChangeTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `operator or infix modifier change is breaking`() {
    
            checkNotBinaryCompatibleKotlin(
                v1 = """
                    fun Int.invoke(some: Int) {}
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt

     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    /**
     * Asserts Kotlin `internal` members are filtered from the comparison.
     */
    class KotlinInternalFilteringTest : AbstractBinaryCompatibilityTest() {
    
        private
        val internalMembers = """
    
            internal fun foo() {}
    
            internal val bar = "bar"
    
            internal var bazar = "bazar"
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jun 27 13:51:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/NullabilityChangesTest.kt

     * limitations under the License.
     */
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class NullabilityChangesTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `from non-null returning to null returning is breaking (java)`() {
    
            checkNotBinaryCompatibleJava(
                v1 = """
                    public class Source {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class SinceAndIncubatingRulesKotlinTest : AbstractBinaryCompatibilityTest() {
    
        private
        val publicKotlinMembers = """
    
            fun foo() {}
    
            val bar: String = "bar"
    
            val bool: Boolean = true
    
            val isBool: Boolean = true
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jul 11 06:57:51 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class UpgradedPropertiesChangesTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `should report binary incompatibility for upgraded property without any metadata`() {
            checkNotBinaryCompatible(
                v1 = {
                    withFile(
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 02 14:20:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top