diff --git a/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/Jest.kt b/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/Jest.kt deleted file mode 100644 index 25f2f236..00000000 --- a/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/Jest.kt +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2023 DiffPlug - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.diffplug.selfie.alternative_api - -import com.diffplug.selfie.Snapshot -import com.diffplug.selfie.Snapshotter -fun preserveScenarios(vararg names: String): Unit = TODO() - -class Expect(private val actual: Snapshot) { - fun toMatchLiteral(actual: String): String = TODO() - fun toMatchSnapshot(scenario: String = ""): String = TODO() -} -fun expect(actual: String) = Expect(Snapshot.of(actual)) -fun expect(actual: T, snapshotter: Snapshotter) = Expect(snapshotter.snapshot(actual)) - -class BinaryExpect(private val actual: ByteArray) { - fun toMatchSnapshot(scenario: String = ""): ByteArray = TODO() -} -fun expect(actual: ByteArray) = BinaryExpect(actual) - -class IntExpect(private val actual: Int) { - fun toMatchLiteral(expected: Int): Int = TODO() -} -fun expect(actual: Int) = IntExpect(actual) - -class LongExpect(private val actual: Long) { - fun toMatchLiteral(expected: Long): Long = TODO() -} -fun expect(actual: Long) = LongExpect(actual) - -class BooleanExpect(private val actual: Boolean) { - fun toMatchLiteral(expected: Boolean): Boolean = TODO() -} -fun expect(actual: Boolean) = BooleanExpect(actual) diff --git a/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/OriginEnergy.kt b/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/OriginEnergy.kt deleted file mode 100644 index b495717c..00000000 --- a/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/alternative_api/OriginEnergy.kt +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2023 DiffPlug - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.diffplug.selfie.alternative_api - -import com.diffplug.selfie.Snapshot -import com.diffplug.selfie.Snapshotter - -interface ExpectSnapshot { - /** Creates a sub-snapshot, which can be used to group related snapshots together. */ - fun scenario(name: String): ExpectSnapshot - - /** - * Selfie prunes snapshots which are no longer used. If there are some that you want to preserve, - * perhaps because a single test has different behavior in different environments, then this - * method will prevent a snapshot from being removed. - */ - fun preserveScenarios(vararg names: String) - fun toMatchSnapshotBinary(content: ByteArray): ByteArray - fun toMatchSnapshot(content: Any): String - fun toMatchSnapshot(content: T, snapshotter: Snapshotter): Snapshot -} - -interface ExpectLiteral { - fun toMatchLiteral(content: Int, actual: Int): Int - fun toMatchLiteral(content: Long, actual: Long): Long - fun toMatchLiteral(content: Boolean, actual: Boolean): Boolean - fun toMatchLiteral(content: Any, actual: String): String -}