File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ object Selfie {
9696 */
9797 @JvmStatic
9898 @ExperimentalSelfieVcr
99- fun vcrSelfie (sub : String = "") = VcrSelfie (sub, deferredDiskStorage)
99+ fun vcrTestLocator (sub : String = "") = VcrSelfie . TestLocator (sub, deferredDiskStorage)
100100}
101101
102102@RequiresOptIn(
Original file line number Diff line number Diff line change @@ -28,9 +28,13 @@ private const val CLOSE = "»"
2828class VcrSelfie
2929internal constructor (
3030 private val sub: String ,
31+ private val call: CallStack ,
3132 private val disk: DiskStorage ,
3233) : AutoCloseable {
33- private val call: CallStack = recordCall(false )
34+ class TestLocator internal constructor(private val sub : String , private val disk : DiskStorage ) {
35+ private val call = recordCall(false )
36+ fun createVcr () = VcrSelfie (sub, call, disk)
37+ }
3438 private val state: State
3539
3640 internal sealed class State {
You can’t perform that action at this time.
0 commit comments