MCPcopy Create free account
hub / github.com/PythonOT/POT / test_helpers

Function test_helpers

test/test_helpers.py:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def test_helpers():
17 compiler = _get_compiler()
18
19 get_openmp_flag(compiler)
20
21 s = '#include <stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n\tprintf("Hello world!\\n");\n\treturn 0;\n}'
22 output, _ = compile_test_program(s)
23 assert len(output) == 1 and output[0] == "Hello world!"
24
25 check_openmp_support()

Callers

nothing calls this directly

Calls 4

_get_compilerFunction · 0.90
get_openmp_flagFunction · 0.90
compile_test_programFunction · 0.90
check_openmp_supportFunction · 0.90

Tested by

no test coverage detected