Skip to content

Commit 1902951

Browse files
authored
DiskSelfie now makes the Snapshot actual value public (#467)
2 parents ce5937e + 91d0be9 commit 1902951

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jvm/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212

1313
## [Unreleased]
14+
### Added
15+
- `DiskSelfie` now makes the `Snapshot actual` value public, so that other testing infrastructure can read from snapshotted values. ([#467](https://github.com/diffplug/selfie/pull/467))
1416
### Fixed
1517
- `cacheSelfie` was missing `@JvmOverloads` on the methods with default arguments. ([#425](https://github.com/diffplug/selfie/pull/425))
1618

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/SelfieImplementations.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ import kotlin.io.encoding.ExperimentalEncodingApi
3030
import kotlin.jvm.JvmOverloads
3131

3232
/** A selfie which can be stored into a selfie-managed file. */
33-
open class DiskSelfie
34-
internal constructor(protected val actual: Snapshot, protected val disk: DiskStorage) :
33+
open class DiskSelfie internal constructor(val actual: Snapshot, protected val disk: DiskStorage) :
3534
FluentFacet {
3635
@JvmOverloads
3736
open fun toMatchDisk(sub: String = ""): DiskSelfie {

0 commit comments

Comments
 (0)