Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coder/mux
/ assert
Function
assert
src/common/utils/assert.ts:10–14 ·
view source on GitHub ↗
(condition: unknown, message?: string)
Source
from the content-addressed store, hash-verified
8
}
9
10
export
function
assert(condition: unknown, message?: string): asserts condition {
11
if
(!condition) {
12
throw
new
AssertionError(message);
13
}
14
}
15
16
export
default assert;
Callers
15
registry.ts
File · 0.90
extractAgentSkillSnapshotBody
Function · 0.90
setShowAllMessages
Method · 0.90
updateStreamClock
Method · 0.90
translateServerTime
Method · 0.90
getOnChatCursor
Method · 0.90
createCompactionBoundaryRow
Function · 0.90
flattenWorkspaceTree
Function · 0.90
computeDelegatedActivityByWorkspaceId
Function · 0.90
constructor
Method · 0.90
subscribe
Method · 0.90
markLoading
Method · 0.90
Calls
no outgoing calls
Tested by
15
runSampleQuery
Function · 0.40
collectFullHistory
Function · 0.40
startWorkspaceTurnForTest
Function · 0.40
createWorkspaceLifecycleHarness
Function · 0.40
removeWorkspaceFromTestConfig
Function · 0.40
archiveWorkspaceInTestConfig
Function · 0.40
createExecuteBashHarness
Function · 0.40
collectFullHistory
Function · 0.40
parseInteger
Function · 0.40
parseBooleanFromInteger
Function · 0.40
parseNullableFiniteNumber
Function · 0.40
createHeadSignatureFromRow
Function · 0.40