final class CoverageSnapshotStore
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Owns atomic snapshot replacement and rejects a second writer for the same key.

Properties§

public string $path

Snapshot filename for this compatibility key.

Methods§

public function __construct(string $directory, string $key)

Locks a compatibility key before reading or generating anything.

Parameters

$directorystring
$keystring

Throws

CoverageException When storage or the exclusive lock is unavailable
Test cases 3
Calls 7
public function __destruct()
public function read(): ?string

Reads only this key's snapshot, never a fuzzer corpus.

Returns

?string

Throws

CoverageException When an existing snapshot cannot be read
Test cases 2
Calls 3
public function write(string $json): void

Replaces a complete file within the same filesystem; a failed write keeps history intact.

Parameters

$jsonstring

Throws

CoverageException When the checkpoint cannot be persisted
Test cases 1
Calls 9

Private surface 1§

Implementation details, listed for orientation only.

private resource|null $lock = null

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 5

Relations§

Instantiated in 1
Type declarations 1