PostGIS  2.4.9dev-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.

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().

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 }
double x
Definition: liblwgeom.h:352
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
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
Definition: lwiterator.c:244
#define LW_FAILURE
Definition: liblwgeom.h:79
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
Definition: lwiterator.c:269
char * inputs[]
Definition: cu_iterator.c:17
double y
Definition: liblwgeom.h:352
Here is the call graph for this function:
Here is the caller graph for this function: