MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / main

Function main

tensorflow/tools/test/file_name_test.py:31–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def main():
32 # Make sure BASE_DIR ends with tensorflow. If it doesn't, we probably
33 # computed the wrong directory.
34 if os.path.split(BASE_DIR)[-1] != 'tensorflow':
35 raise AssertionError(
36 "BASE_DIR = '%s' doesn't end with tensorflow" % BASE_DIR)
37
38 for dirpath, dirnames, filenames in os.walk(BASE_DIR, followlinks=True):
39 lowercase_directories = [x.lower() for x in dirnames]
40 lowercase_files = [x.lower() for x in filenames]
41
42 lowercase_dir_contents = lowercase_directories + lowercase_files
43 if len(lowercase_dir_contents) != len(set(lowercase_dir_contents)):
44 raise AssertionError(ERROR_MESSAGE.format(dirpath))
45
46
47if __name__ == '__main__':

Callers 1

file_name_test.pyFile · 0.70

Calls 2

splitMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected