PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_pixtype_name()

static void test_pixtype_name ( )
static

Definition at line 47 of file cu_pixtype.c.

47  {
48  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_1BB), "1BB");
49  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_2BUI), "2BUI");
50  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_4BUI), "4BUI");
51  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_8BUI), "8BUI");
52  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_8BSI), "8BSI");
53  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_16BUI), "16BUI");
54  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_16BSI), "16BSI");
55  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BUI), "32BUI");
56  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BSI), "32BSI");
57  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BF), "32BF");
58  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_64BF), "64BF");
59 
60  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_END), "Unknown");
61 }
@ 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
const char * rt_pixtype_name(rt_pixtype pixtype)
Definition: rt_pixel.c:110

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

Referenced by pixtype_suite_setup().

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