CustomScenario class

One consumer-owned scenario (customScenarios:): the metric id is custom.<name> (package ids are reserved — shadowing a contract scenario is rejected at load), it has its OWN golden ref, and it is excluded from rivals comparison and public tables. The consumer writes the test (the metric definition); the package provides the machinery (run, goldens, gate) — the test reports reportMetric('custom.<name>', value) and the CLI records/checks it under ref.

Constructors

CustomScenario({required String id, required String name, required String target, String ref = 'custom', int runs = 1})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Full metric/scenario id: custom.<name>.
final
name String
Short manifest key (startup_to_show → id custom.startup_to_show).
final
ref String
Golden ref of this scenario (own ref, e.g. android-custom).
final
runs int
Repeat count in one contract run (median-reduced like contract runs).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
Test file path, relative to the consumer root (consumer-authored).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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