PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ 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
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
Definition: lwiterator.c:244
#define LW_FAILURE
Definition: liblwgeom.h:79
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
Definition: lwiterator.c:269
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:226
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
double x
Definition: liblwgeom.h:355
double y
Definition: liblwgeom.h:355

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: