MCPcopy Create free account
hub / github.com/angular/dev-infra / getResults

Method getResults

ng-dev/pullapprove/group.ts:126–140  ·  view source on GitHub ↗

Retrieve the results for the Group, all matched and unmatched conditions.

()

Source from the content-addressed store, hash-verified

124
125 /** Retrieve the results for the Group, all matched and unmatched conditions. */
126 getResults(): PullApproveGroupResult {
127 const matchedConditions = this.conditions.filter((c) => c.matchedFiles.size > 0);
128 const unmatchedConditions = this.conditions.filter(
129 (c) => c.matchedFiles.size === 0 && !c.unverifiable,
130 );
131 const unverifiableConditions = this.conditions.filter((c) => c.unverifiable);
132 return {
133 matchedConditions,
134 matchedCount: matchedConditions.length,
135 unmatchedConditions,
136 unmatchedCount: unmatchedConditions.length,
137 unverifiableConditions,
138 groupName: this.groupName,
139 };
140 }
141}

Callers 1

verifyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected