Files
2026-08-11 06:46:06 +00:00
..
2026-07-13 08:52:28 +00:00
2023-10-09 02:57:20 +00:00
2024-12-02 09:22:21 +00:00
2026-03-10 09:47:17 +08:00
2023-10-09 02:57:20 +00:00
2026-07-16 09:21:43 +00:00
2023-10-09 02:57:20 +00:00
2023-10-09 02:57:20 +00:00
2024-10-23 03:15:25 +00:00
2023-10-09 02:57:20 +00:00

Test

Unit testing uses googletest testing framework, testing point processing, JSON reading, architecture, HTTP acquisition, and other small-scale tests. To run all unit tests.

$ cd build
$ ctest --output-on-failure

To introduce coverage statistics using LCOV:

Add parameter -DUSE_GCOV=1 during compilation

Generate image files .gcno and data files .gcda under build/tests/CMakeFiles/.dir

Execute the following command in the build folder to generate an intermediate file for HTML:

$ lcov --capture --directory . --output-file testneuron.info --test-name testneuron

Execute the following command in the build folder to generate an HTML file in the result folder under the build folder:

$ genhtml -o result testneuron.info

Open build/result index.html to view coverage statistics report.