DirectoryGoldenBundle class final

Goldens on disk, laid out as fluttorch-export wrote them.

Keys are paths relative to root, exactly as the manifest records them, so a bundle is one directory plus one manifest with nothing in between to keep in step.

Inheritance

Constructors

DirectoryGoldenBundle(ModelManifest manifest, {required String root, String? bundleRoot})
const

Properties

bundleRoot String?
Directory the manifest itself was read from.
final
cases List<GoldenCase>
Cases in the bundle, in the order the exporter captured them.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
manifest → ModelManifest
The contract these goldens were captured against.
finalinherited
root String
Directory holding the goldens, which the exporter writes as goldens/ beside the artifact.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bytesFor(String key) Future<Uint8List>
The bytes stored under key, little-endian, as the exporter wrote them.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parts() Future<Map<String, Uint8List>>
The files the manifest declares under parts, read from beside it.
tensor(String key, TensorSpec spec) Future<Tensor>
Resolves one key to a tensor satisfying spec.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

open(String manifestPath, {String? root}) Future<DirectoryGoldenBundle>
Reads the manifest at manifestPath and takes its goldens from root, which defaults to the goldens/ directory written beside it.