MCPcopy Create free account
hub / github.com/HexHive/NASS / insert_crashing_sequence

Function insert_crashing_sequence

data/database.py:59–74  ·  view source on GitHub ↗
(connection, service, calls, call_config)

Source from the content-addressed store, hash-verified

57
58
59def insert_crashing_sequence(connection, service, calls, call_config):
60 service_id = interface_db.insert_update_service(connection, service)
61 crash_id = crash_db.insert_crash(connection, service_id)
62 for i, call in enumerate(calls):
63 call_id = crash_db.insert_call(
64 connection, service_id, crash_id, call.cmd_id, i, call_config.sleep
65 )
66 for j, arg in enumerate(call.args):
67 crash_db.insert_callarg(
68 connection,
69 call_id,
70 j,
71 arg.argtype,
72 arg.get_db_data(),
73 arg.get_info(),
74 )
75
76
77def insert_update_service(connection, service):

Callers

nothing calls this directly

Calls 2

get_db_dataMethod · 0.80
get_infoMethod · 0.80

Tested by

no test coverage detected