MCPcopy Create free account
hub / github.com/alibaba/GraphScope / empty_gar

Function empty_gar

python/graphscope/tests/unittest/test_udf_app.py:72–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71@pytest.fixture(scope="module")
72def empty_gar():
73 path = os.path.join(
74 "/",
75 tempfile.gettempprefix(),
76 "{}.gar".format(str(datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f"))),
77 )
78 empty_zip_data = b"PK\x05\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
79 with open(path, "wb") as f:
80 f.write(empty_zip_data)
81 yield path
82 os.remove(path)
83
84
85def invalid_configfile_gar():

Callers

nothing calls this directly

Calls 5

openFunction · 0.85
writeMethod · 0.65
joinMethod · 0.45
formatMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected