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

◆ test_cannot_modify_read_only()

static void test_cannot_modify_read_only ( void  )
static

Definition at line 92 of file cu_iterator.c.

93{
96
97 POINT4D p;
98 p.x = 3.2;
99 p.y = 4.8;
100
101 CU_ASSERT_EQUAL(LW_FAILURE, lwpointiterator_modify_next(it, &p));
102
103 lwgeom_free(input);
105}
char * inputs[]
Definition cu_iterator.c:17
#define LW_FAILURE
Definition liblwgeom.h:96
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
Definition lwiterator.c:243
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
Definition lwiterator.c:268
int lwpointiterator_modify_next(LWPOINTITERATOR *s, const POINT4D *p)
Attempts to replace the next point int the iterator with p, and advances the iterator to the next poi...
Definition lwiterator.c:224
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:940
double x
Definition liblwgeom.h:414
double y
Definition liblwgeom.h:414

References inputs, LW_FAILURE, LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwpointiterator_create(), lwpointiterator_destroy(), lwpointiterator_modify_next(), POINT4D::x, and POINT4D::y.

Referenced by iterator_suite_setup().

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