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

Remove legacy arrow meta #2586

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ package arrow.continuations.generic

/** Represents a unique identifier using object equality. */
internal class Token {
@ExperimentalUnsignedTypes
override fun toString(): String = "Token(${hashCode().toUInt().toString(16)})"
override fun toString(): String = "Token(${hashCode().toString(16)})"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import arrow.core.Tuple5
import arrow.core.test.generators.unit
import arrow.core.test.laws.Law
import io.kotest.core.names.TestName
import io.kotest.core.source.SourceRef
import io.kotest.core.spec.RootTest
import io.kotest.core.spec.style.StringSpec
import io.kotest.core.spec.style.scopes.StringSpecScope
import io.kotest.core.spec.style.scopes.addTest
import io.kotest.core.test.TestType
import io.kotest.property.Arb
import io.kotest.property.Gen
import io.kotest.property.PropertyContext
Expand Down Expand Up @@ -59,14 +64,18 @@ public abstract class UnitSpec(
.flatMap { list: List<Law> -> list.asIterable() }
.distinctBy { law: Law -> law.name }
.forEach { law: Law ->
registration().addTest(TestName(law.name), xdisabled = false, law.test)
addTest(TestName(null, law.name, false), false, null) {
law.test(StringSpecScope(this.coroutineContext, testCase))
}
}

public fun testLaws(prefix: String, vararg laws: List<Law>): Unit = laws
.flatMap { list: List<Law> -> list.asIterable() }
.distinctBy { law: Law -> law.name }
.forEach { law: Law ->
registration().addTest(TestName(prefix, law.name, true), xdisabled = false, law.test)
addTest(TestName(prefix, law.name, false), false, null) {
law.test(StringSpecScope(this.coroutineContext, testCase))
}
}

public suspend fun checkAll(property: suspend PropertyContext.() -> Unit): PropertyContext =
Expand Down
1,694 changes: 0 additions & 1,694 deletions arrow-libs/core/arrow-meta/api/arrow-meta.api

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions arrow-libs/core/arrow-meta/arrow-meta-test-models/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions arrow-libs/core/arrow-meta/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions arrow-libs/core/arrow-meta/gradle.properties

This file was deleted.

13 changes: 0 additions & 13 deletions arrow-libs/core/arrow-meta/infographic/arrow-infographic.txt

This file was deleted.

5 changes: 0 additions & 5 deletions arrow-libs/core/arrow-meta/knit.properties

This file was deleted.

This file was deleted.

This file was deleted.