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 {
96
96
*/
97
97
@JvmStatic
98
98
@ExperimentalSelfieVcr
99
- fun vcrSelfie (sub : String = "") = VcrSelfie (sub, deferredDiskStorage)
99
+ fun vcrTestLocator (sub : String = "") = VcrSelfie . TestLocator (sub, deferredDiskStorage)
100
100
}
101
101
102
102
@RequiresOptIn(
Original file line number Diff line number Diff line change @@ -28,9 +28,13 @@ private const val CLOSE = "»"
28
28
class VcrSelfie
29
29
internal constructor (
30
30
private val sub: String ,
31
+ private val call: CallStack ,
31
32
private val disk: DiskStorage ,
32
33
) : 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
+ }
34
38
private val state: State
35
39
36
40
internal sealed class State {
You can’t perform that action at this time.
0 commit comments