Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/openrasp
/ assert
Function
assert
agent/java/integration-test/rasp/plugins/plugin.js:9–13 ·
view source on GitHub ↗
(flag)
Source
from the content-addressed store, hash-verified
7
8
function
checkContext(context) {
9
function
assert(flag) {
10
if
(!flag) {
11
throw
new
Error();
12
}
13
}
14
15
assert(context.method);
16
assert(context.protocol ===
'http/1.1'
);
Callers
1
checkContext
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected