MCPcopy Index your code
hub / github.com/microsoft/typescript-go / Assert

Function Assert

internal/debug/debug.go:45–50  ·  view source on GitHub ↗
(value bool, message ...any)

Source from the content-addressed store, hash-verified

43}
44
45func Assert(value bool, message ...any) {
46 if value {
47 return
48 }
49 assertSlow(message...)
50}
51
52func assertSlow(message ...any) {
53 // See https://dave.cheney.net/2020/05/02/mid-stack-inlining-in-go

Calls 1

assertSlowFunction · 0.85

Tested by 4

TestAssertTrueFunction · 0.74
TestAssertFalseNoMessageFunction · 0.74