NCBI C++ ToolKit
Functions
test_data_path.h File Reference

Defines location of test data folder at NCBI. More...

#include <stdlib.h>
#include <string.h>
#include <corelib/ncbisys.hpp>
+ Include dependency graph for test_data_path.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static const char * NCBI_GetTestDataPath (void)
 Get the directory where test data is stored at NCBI. More...
 

Detailed Description

Defines location of test data folder at NCBI.

Definition in file test_data_path.h.

Function Documentation

◆ NCBI_GetTestDataPath()

static const char* NCBI_GetTestDataPath ( void  )
static

Get the directory where test data is stored at NCBI.

The location is hard coded, but can be changed using environment variables NCBI_TEST_DATA_PATH or NCBI_TEST_DATA.

Returns
Pointer to internal zero-terminated string buffer, that contains a path to the test data.
Note
The path can be terminated by a slash, or not. So, please use next code to get an absolute path to the subfolder with a test data: CFile::MakePath(NCBI_GetTestDataPath(), "some/test/path") ; Also, you can use: string path = NCBI_GetTestDataPath() + "/some/test/path"); Possible extra slash between path's parts will be ignored by OS.

Definition at line 61 of file test_data_path.h.

References NcbiSysChar_strdup, and NULL.

Referenced by BOOST_AUTO_TEST_CASE(), and CBam2GraphApp::ProcessFile().

Modified on Wed Apr 24 14:15:54 2024 by modify_doxy.py rev. 669887