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

Function create

ng-dev/release/versioning/test/active-release-trains.spec.ts:271–277  ·  view source on GitHub ↗

Creates a fake branch fixture.

(
  branchName: string,
  version: string,
  opts?: {exceptionalMinor: boolean},
)

Source from the content-addressed store, hash-verified

269
270/** Creates a fake branch fixture. */
271function create(
272 branchName: string,
273 version: string,
274 opts?: {exceptionalMinor: boolean},
275): FakeBranch {
276 return {name: branchName, version, isExceptionalMinor: opts?.exceptionalMinor === true};
277}
278
279/** Creates a jasmine matcher for matching a release train. */
280function matchesTrain(branchName: string, version: string): jasmine.ObjectContaining<ReleaseTrain> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected