@@ -2103,6 +2103,44 @@ namespace {
21032103 testUtils::checkStatuses (resultsMap, tests);
21042104 }
21052105
2106+ TEST_F (Server_Test, Run_Tests_For_Multi_Dim_Pointers) {
2107+ fs::path multi_dim_pointers_c = getTestFilePath (" multi_dim_pointers.c" );
2108+ auto request = testUtils::createFileRequest (projectName, suitePath, buildDirRelativePath,
2109+ srcPaths, multi_dim_pointers_c,
2110+ GrpcUtils::UTBOT_AUTO_TARGET_PATH, true , false );
2111+ auto testGen = FileTestGen (*request, writer.get (), TESTMODE);
2112+ Status status = Server::TestsGenServiceImpl::ProcessBaseTestRequest (testGen, writer.get ());
2113+ ASSERT_TRUE (status.ok ()) << status.error_message ();
2114+ EXPECT_GE (testUtils::getNumberOfTests (testGen.tests ), 2 );
2115+
2116+ fs::path testsDirPath = getTestFilePath (" tests" );
2117+
2118+ fs::path multi_dim_pointers_test_cpp = Paths::sourcePathToTestPath (
2119+ utbot::ProjectContext (projectName, suitePath, testsDirPath, buildDirRelativePath, clientProjectPath),
2120+ multi_dim_pointers_c);
2121+ auto testFilter = GrpcUtils::createTestFilterForFile (multi_dim_pointers_test_cpp);
2122+ auto runRequest = testUtils::createCoverageAndResultsRequest (
2123+ projectName, suitePath, testsDirPath, buildDirRelativePath, std::move (testFilter));
2124+
2125+ static auto coverageAndResultsWriter =
2126+ std::make_unique<ServerCoverageAndResultsWriter>(nullptr );
2127+ CoverageAndResultsGenerator coverageGenerator{ runRequest.get (),
2128+ coverageAndResultsWriter.get () };
2129+ utbot::SettingsContext settingsContext{
2130+ true , false , 45 , 0 , false , false , ErrorMode::FAILING, false
2131+ };
2132+ coverageGenerator.generate (false , settingsContext);
2133+
2134+ EXPECT_FALSE (coverageGenerator.hasExceptions ());
2135+ ASSERT_TRUE (coverageGenerator.getCoverageMap ().empty ());
2136+
2137+ auto resultsMap = coverageGenerator.getTestResultMap ();
2138+ auto tests = coverageGenerator.getTestsToLaunch ();
2139+
2140+ StatusCountMap expectedStatusCountMap{ { testsgen::TEST_PASSED, 2 } };
2141+ testUtils::checkStatuses (resultsMap, tests);
2142+ }
2143+
21062144 TEST_F (Server_Test, Run_Tests_For_Struct_With_Union) {
21072145 fs::path struct_with_union_c = getTestFilePath (" struct_with_union.c" );
21082146 auto request = testUtils::createFileRequest (projectName, suitePath, buildDirRelativePath,
0 commit comments