MCPcopy Index your code
hub / github.com/nodejs/node / self_test

Function self_test

deps/inspector_protocol/check_protocol_compatibility.py:221–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219
220
221def self_test():
222 def create_test_schema_1():
223 return [
224 {
225 "domain": "Network",
226 "types": [
227 {
228 "id": "LoaderId",
229 "type": "string"
230 },
231 {
232 "id": "Headers",
233 "type": "object"
234 },
235 {
236 "id": "Request",
237 "type": "object",
238 "properties": [
239 {"name": "url", "type": "string"},
240 {"name": "method", "type": "string"},
241 {"name": "headers", "$ref": "Headers"},
242 {"name": "becameOptionalField", "type": "string"},
243 {"name": "removedField", "type": "string"},
244 ]
245 }
246 ],
247 "commands": [
248 {
249 "name": "removedCommand",
250 },
251 {
252 "name": "setExtraHTTPHeaders",
253 "parameters": [
254 {"name": "headers", "$ref": "Headers"},
255 {"name": "mismatched", "type": "string"},
256 {"name": "becameOptional", "$ref": "Headers"},
257 {"name": "removedRequired", "$ref": "Headers"},
258 {"name": "becameRequired", "$ref": "Headers", "optional": True},
259 {"name": "removedOptional", "$ref": "Headers", "optional": True},
260 ],
261 "returns": [
262 {"name": "mimeType", "type": "string"},
263 {"name": "becameOptional", "type": "string"},
264 {"name": "removedRequired", "type": "string"},
265 {"name": "becameRequired", "type": "string", "optional": True},
266 {"name": "removedOptional", "type": "string", "optional": True},
267 ]
268 }
269 ],
270 "events": [
271 {
272 "name": "requestWillBeSent",
273 "parameters": [
274 {"name": "frameId", "type": "string", "experimental": True},
275 {"name": "request", "$ref": "Request"},
276 {"name": "becameOptional", "type": "string"},
277 {"name": "removedRequired", "type": "string"},
278 {"name": "becameRequired", "type": "string", "optional": True},

Callers 1

mainFunction · 0.70

Calls 4

errors_matchFunction · 0.70
compare_schemasFunction · 0.70
create_test_schema_1Function · 0.70
create_test_schema_2Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…