PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_ShpLoaderCreate()

void test_ShpLoaderCreate ( void  )

Definition at line 65 of file cu_shp2pgsql.c.

References shp_loader_state::config, shp_loader_config::encoding, ENCODING_DEFAULT, set_loader_config_defaults(), and ShpLoaderCreate().

Referenced by register_shp2pgsql_suite().

66 {
67  loader_config = (SHPLOADERCONFIG*)calloc(1, sizeof(SHPLOADERCONFIG));
70  CU_ASSERT_PTR_NOT_NULL(loader_state);
71  CU_ASSERT_STRING_EQUAL(loader_state->config->encoding, ENCODING_DEFAULT);
72 }
SHPLOADERSTATE * loader_state
Definition: cu_shp2pgsql.c:21
SHPLOADERCONFIG * config
void set_loader_config_defaults(SHPLOADERCONFIG *config)
SHPLOADERSTATE * ShpLoaderCreate(SHPLOADERCONFIG *config)
#define ENCODING_DEFAULT
SHPLOADERCONFIG * loader_config
Definition: cu_shp2pgsql.c:20
Here is the call graph for this function:
Here is the caller graph for this function: