MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / load_test

Method load_test

tests/testing/view_image_tests.py:143–156  ·  view source on GitHub ↗

Load a single test (including test log file by default).

(self, test_report_file, load_log=True)

Source from the content-addressed store, hash-verified

141 return run
142
143 def load_test(self, test_report_file, load_log=True):
144 '''
145 Load a single test (including test log file by default).
146 '''
147 test = load_json(test_report_file)
148 if not test:
149 return None
150
151 if load_log:
152 log_file = test_report_file.parent / 'log.txt'
153 if log_file.exists():
154 test['log'] = log_file.read_text('utf-8')
155
156 return test
157
158
159def load_json(path):

Callers 2

load_runMethod · 0.95
catch_allFunction · 0.80

Calls 1

load_jsonFunction · 0.85

Tested by

no test coverage detected