PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ do_fn_test()

void do_fn_test ( LWGEOM *(*)(LWGEOM *)  transfn,
char *  input_wkt,
char *  expected_wkt 
)

Definition at line 320 of file liblwgeom/cunit/cu_tester.c.

321{
322 LWGEOM* input = lwgeom_from_wkt(input_wkt, LW_PARSER_CHECK_NONE);
323 LWGEOM* expected = lwgeom_from_wkt(expected_wkt, LW_PARSER_CHECK_NONE);
324 LWGEOM* observed = transfn(input);
325
326 ASSERT_LWGEOM_EQUAL(observed, expected);
327
328 lwgeom_free(input);
329 lwgeom_free(expected);
330 lwgeom_free(observed);
331}
#define ASSERT_LWGEOM_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:940

References ASSERT_LWGEOM_EQUAL, LW_PARSER_CHECK_NONE, lwgeom_free(), and lwgeom_from_wkt().

Referenced by test_lwmpoint_from_lwgeom().

Here is the call graph for this function:
Here is the caller graph for this function: