language-extensions/R/test/src/RExtensionApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionApiTests::CreateLibPaths
//
// Description:
//  Creates the library path directories.
//
:CreateLibPaths
Description:
Creates the library path directories.
: CreateLibPaths Description : Creates the library path directories .
void RExtensionApiTests::CreateLibPaths()
	{
		fs::path libPath = fs::absolute(sm_libraryRootPath);
		if (fs::exists(libPath))
		{
			fs::remove_all(libPath);
		}
		fs::path publicLibraryPath = fs::absolute(sm_publicLibraryPath);
		fs::path privateLibraryPath = fs::absolute(sm_privateLibraryPath);
		EXPECT_TRUE(fs::create_directory(libPath));
		EXPECT_TRUE(fs::create_directory(publicLibraryPath));
		EXPECT_TRUE(fs::create_directory(privateLibraryPath));
	}
void RExtensionApiTests :: CreateLibPaths ( ) { fs :: path libPath = fs :: absolute ( sm_libraryRootPath ) ; if ( fs :: exists ( libPath ) ) { fs :: remove_all ( libPath ) ; } fs :: path publicLibraryPath = fs :: absolute ( sm_publicLibraryPath ) ; fs :: path privateLibraryPath = fs :: absolute ( sm_privateLibraryPath ) ; EXPECT_TRUE ( fs :: create_directory ( libPath ) ) ; EXPECT_TRUE ( fs :: create_directory ( publicLibraryPath ) ) ; EXPECT_TRUE ( fs :: create_directory ( privateLibraryPath ) ) ; }
Name: RExtensionApiTests::CreateLibPaths
Description:
Creates the library path directories.
Name : RExtensionApiTests :: CreateLibPaths Description : Creates the library path directories .