Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for checkBinaryCompatibleKotlin (0.26 sec)

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

                )
                assertHasNoInformation()
            }
        }
    
        @Test
        fun `from null returning to non-null returning is not breaking (kotlin)`() {
    
            checkBinaryCompatibleKotlin(
                v1 = """
                    class Source {
                        val someVal: String? = null
                        fun foo(): String? = null
                    }
                """,
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

                    added("Method", "SourceKt.setFool(boolean)")
                )
            }
    
            // with existing non-incubating file-facade class, new members must be annotated with @Incubating and @since
            checkBinaryCompatibleKotlin(
                v1 = """
                    val existing = "file-facade-class"
                """,
                v2 = """
                    val existing = "file-facade-class"
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AnonymousClassesFilteringTest.kt

                        }
                    }
                """
            ) {
                assertEmptyReport()
            }
        }
    
        @Test
        fun `anonymous classes are excluded (kotlin)`() {
    
            checkBinaryCompatibleKotlin(
                v1 = """
                    fun some() {}
                """,
                v2 = """
                    fun some() {
                        val anon = object : Runnable {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt

            enum class AddedEnum {
                FOO;
    
                $publicMembers
            }
        """
    
        @Test
        fun `added internal members are filtered from the comparison`() {
    
            checkBinaryCompatibleKotlin(
                v1 = existingSource,
                v2 = internalSource
            ).assertEmptyReport()
        }
    
        @Test
        fun `existing internal members made public appear as added`() {
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

    
    abstract class AbstractBinaryCompatibilityTest {
    
        @get:Rule
        val tmpDir = TemporaryFolder()
    
        private
        val rootDir: File
            get() = tmpDir.root
    
        internal
        fun checkBinaryCompatibleKotlin(v1: String = "", v2: String, block: CheckResult.() -> Unit = {}): CheckResult =
            runKotlinBinaryCompatibilityCheck(v1, v2) {
                assertBinaryCompatible()
                block()
            }
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
Back to top