PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_pixtype_index_from_name()

static void test_pixtype_index_from_name ( )
static

Definition at line 63 of file cu_pixtype.c.

63  {
64  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1BB"), PT_1BB);
65  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("2BUI"), PT_2BUI);
66  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("4BUI"), PT_4BUI);
67  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("8BUI"), PT_8BUI);
68  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("8BSI"), PT_8BSI);
69  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("16BUI"), PT_16BUI);
70  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("16BSI"), PT_16BSI);
71  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BUI"), PT_32BUI);
72  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BSI"), PT_32BSI);
73  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BF"), PT_32BF);
74  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("64BF"), PT_64BF);
75 
76  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("END"), PT_END);
77  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1bb"), PT_END);
78  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1bB"), PT_END);
79  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("3BUI"), PT_END);
80 }
rt_pixtype rt_pixtype_index_from_name(const char *pixname)
Definition: rt_pixel.c:80
@ PT_32BUI
Definition: librtcore.h:194
@ PT_2BUI
Definition: librtcore.h:187
@ PT_32BSI
Definition: librtcore.h:193
@ PT_END
Definition: librtcore.h:197
@ PT_4BUI
Definition: librtcore.h:188
@ PT_32BF
Definition: librtcore.h:195
@ PT_1BB
Definition: librtcore.h:186
@ PT_16BUI
Definition: librtcore.h:192
@ PT_8BSI
Definition: librtcore.h:189
@ PT_16BSI
Definition: librtcore.h:191
@ PT_64BF
Definition: librtcore.h:196
@ PT_8BUI
Definition: librtcore.h:190

References PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, PT_END, and rt_pixtype_index_from_name().

Referenced by pixtype_suite_setup().

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