MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / _parse_file

Function _parse_file

src/couchdb/loader.py:116–117  ·  view source on GitHub ↗
(path, cfg)

Source from the content-addressed store, hash-verified

114
115
116def _parse_file(path, cfg) -> list:
117 return parse_csv(path, cfg) if cfg.get("format") == "csv" else parse_json(path)
118
119
120def _collect_docs(key, source, cfg, base_dir=None) -> list:

Callers 1

_collect_docsFunction · 0.85

Calls 3

parse_csvFunction · 0.85
parse_jsonFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected