MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / dump

Method dump

src/licensedcode_test_utils.py:121–127  ·  view source on GitHub ↗

Dump a representation of self to its YAML data file

(self)

Source from the content-addressed store, hash-verified

119 return dct
120
121 def dump(self):
122 """
123 Dump a representation of self to its YAML data file
124 """
125 as_yaml = saneyaml.dump(self.to_dict())
126 with io.open(self.data_file, 'w', encoding='utf-8') as df:
127 df.write(as_yaml)
128
129 def get_content(self):
130 """

Callers 1

closure_test_functionFunction · 0.45

Calls 3

to_dictMethod · 0.95
openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected