GenUiCoverage class
What a corpus of recorded sessions says the agent actually used.
A catalog is paid for in every request, whether the agent composes with it
or not. genUiCatalogWeight says what each component costs; this says
which ones earned it. The two together answer the question nothing else
does: is this catalog too big, and which part of it is the dead weight.
Constructors
-
GenUiCoverage({required int sessions, required int surfaces, required Map<
String, int> componentUses, required Map<String, Set< propertyUses, required Map<String> >String, Set< enumValueUses, required Set<String> >String> catalogComponents, required Map<String, Set< catalogProperties, required Map<String> >String, Set< catalogEnumValues, required GenUiCatalogWeight? weight})String> > -
Creates a GenUiCoverage.
const
Properties
-
catalogComponents
→ Set<
String> -
Every component the catalog offers.
final
-
catalogEnumValues
→ Map<
String, Set< String> > -
Every value each enum property offers, keyed
Component.property.final -
catalogProperties
→ Map<
String, Set< String> > -
Every property each component offers.
final
-
The share of the catalog's components the agent composed, 0 to 1.
no setter
-
componentUses
→ Map<
String, int> -
How many times each component was composed, largest first.
final
-
enumValueUses
→ Map<
String, Set< String> > -
Which values of each enum property the agent ever chose.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
propertyUses
→ Map<
String, Set< String> > -
Which properties of each component the agent ever filled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessions → int
-
How many traces were read.
final
- surfaces → int
-
How many surfaces those traces composed.
final
-
unusedComponents
→ Set<
String> -
Components the agent never composed.
no setter
-
unusedEnumValues
→ Map<
String, Set< String> > -
Enum values the agent never chose, for properties it did fill.
no setter
-
unusedProperties
→ Map<
String, Set< String> > -
Properties the agent never filled, for components it did compose.
no setter
- wastedCharacters → int?
-
What the components the agent never composed cost, in characters.
no setter
- weight → GenUiCatalogWeight?
-
What the catalog costs, when one was measured.
final
Methods
-
describe(
) → String - A report for a test that prints it or a CI job that keeps it in the log.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited