MDL-79285 xhprof: Cover the new functions with unit tests
commit8ef2974af1f435dd7797e3a88f18c0c07b37f21b
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 6 Sep 2023 19:15:39 +0000 (6 21:15 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 26 Sep 2023 17:39:47 +0000 (26 19:39 +0200)
tree135365f438a8d8d04fefae1b4a8b87dfd952778d
parentbc70bd69edb651c51fa12eb24e25d6eaa8068315
MDL-79285 xhprof: Cover the new functions with unit tests

This covers the 2 new functions with unit tests:
- xhprof_topo_sort()
- reduce_run_data()

Note that the example graph used in the provider is the
one shown in the issue to explain the reduction procedure.
lib/tests/xhprof_test.php
lib/xhprof/xhprof_moodle.php