1 // Part of Measurement Kit <https://measurement-kit.github.io/>. 2 // Measurement Kit is free software under the BSD license. See AUTHORS 3 // and LICENSE for more information on the copying conditions. 4 5 #include "test/winsock.hpp" 6 7 #include "include/private/catch.hpp" 8 9 #include <measurement_kit/ffi.h> 10 11 TEST_CASE("mk_task_start() works as expected") { 12 SECTION("With nullptr settings") { 13 auto task = mk_task_start(nullptr); 14 REQUIRE(task == nullptr); 15 } 16 17 SECTION("With invalid settings") { 18 auto task = mk_task_start("{"); 19 REQUIRE(task == nullptr); 20 } 21 } 22