MCPcopy
hub / github.com/kubernetes/test-infra / append

Method append

experiment/parse_build_log.py:39–53  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

37 self._it = None
38
39 def append(self, line):
40 self._lines.append(line)
41 try:
42 timestamp = datetime.datetime.strptime(line[:19], '%b %d %H:%M:%S.%f').replace(
43 year=_CURRENT_YEAR)
44 except: # pylint: disable=bare-except
45 pass
46 else:
47 if not self._start:
48 self._start = timestamp
49 self._end = timestamp
50 if line.startswith('[It] '):
51 self._it = line
52 if line.startswith('[BeforeEach] ') and not self._it:
53 self._it = line
54
55 def overlaps(self, after, before):
56 if self._end and after and self._end < after:

Callers 15

_get_testsFunction · 0.95
clean_projectFunction · 0.80
mainFunction · 0.80
add_fileMethod · 0.80
add_envMethod · 0.80
mainFunction · 0.80
resultFunction · 0.80
mainFunction · 0.80
generateFunction · 0.80
generate_oneFunction · 0.80
normalize_filesFunction · 0.80

Calls

no outgoing calls

Tested by 15

dispatcherMethod · 0.64
diffs_to_eventsFunction · 0.64
mkMethod · 0.64
get_deferred_funcsMethod · 0.64
init_github_fakeMethod · 0.64
pullMethod · 0.64
acknowledgeMethod · 0.64
modify_ack_deadlineMethod · 0.64
insert_rowsMethod · 0.64
expectMethod · 0.64