Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ isMock
Function
isMock
github/index.ts:345–348 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
343
}
344
345
function
isMock() {
346
const
{ mockEvent, mockToken } = useEnvMock()
347
return
Boolean(mockEvent || mockToken)
348
}
349
350
function
isPullRequest() {
351
const
context = useContext()
Callers
4
useContext
Function · 0.85
useShareUrl
Function · 0.85
getAccessToken
Function · 0.85
configureGit
Function · 0.85
Calls
1
useEnvMock
Function · 0.85
Tested by
no test coverage detected