
Selfie
object Selfie
Static methods for creating snapshots.
Functions
Link copied to clipboard
Link copied to clipboard
fun <T> cacheSelfieBinary(roundtrip: Roundtrip<T, ByteArray>, toCache: Cacheable<T>): CacheSelfieBinary<T>
Link copied to clipboard
fun <T : Serializable> Selfie.cacheSelfieBinarySerializable(toCache: Cacheable<T>): CacheSelfieBinary<T>
Link copied to clipboard
Memoizes any type which is marked with @kotlinx.serialization.Serializable
as pretty-printed json.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sometimes a selfie is environment-specific, but should not be deleted when run in a different environment.
Link copied to clipboard
Whichever file calls this method is where Selfie will look for //selfieonce
comments to control whether the VCR is writing or reading. If the caller lives in a package called selfie.*
it will keep looking up the stack trace until a caller is not inside selfie.*
.