MCPcopy Index your code
hub / github.com/angular/angular / assertEqual

Function assertEqual

packages/core/src/util/assert.ts:45–49  ·  view source on GitHub ↗
(actual: T, expected: T, msg: string)

Source from the content-addressed store, hash-verified

43}
44
45export function assertEqual<T>(actual: T, expected: T, msg: string) {
46 if (!(actual == expected)) {
47 throwError(msg, actual, expected, '==');
48 }
49}
50
51export function assertNotEqual<T>(actual: T, expected: T, msg: string): asserts actual is T {
52 if (!(actual != expected)) {

Callers 15

createComponentMethod · 0.90
insertImplMethod · 0.90
applyProjectionRecursiveFunction · 0.90
assertLContainerFunction · 0.90
assertLViewOrUndefinedFunction · 0.90
assertLViewFunction · 0.90
assertFirstCreatePassFunction · 0.90
assertFirstUpdatePassFunction · 0.90
bloomAddFunction · 0.90
getNodeInjectableFunction · 0.90

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…