Lines Matching refs:has_prefix
118 bool has_prefix = true; in test_parse_capacity() local
120 rc = spdk_parse_capacity("472", &cap, &has_prefix); in test_parse_capacity()
123 CU_ASSERT(has_prefix == false); in test_parse_capacity()
126 rc = spdk_parse_capacity(str, &cap, &has_prefix); in test_parse_capacity()
129 CU_ASSERT(has_prefix == false); in test_parse_capacity()
131 rc = spdk_parse_capacity("12k", &cap, &has_prefix); in test_parse_capacity()
134 CU_ASSERT(has_prefix == true); in test_parse_capacity()
136 rc = spdk_parse_capacity("12K", &cap, &has_prefix); in test_parse_capacity()
139 CU_ASSERT(has_prefix == true); in test_parse_capacity()
141 rc = spdk_parse_capacity("12KB", &cap, &has_prefix); in test_parse_capacity()
144 CU_ASSERT(has_prefix == true); in test_parse_capacity()
146 rc = spdk_parse_capacity("100M", &cap, &has_prefix); in test_parse_capacity()
149 CU_ASSERT(has_prefix == true); in test_parse_capacity()
151 rc = spdk_parse_capacity("128M", &cap, &has_prefix); in test_parse_capacity()
154 CU_ASSERT(has_prefix == true); in test_parse_capacity()
156 rc = spdk_parse_capacity("4G", &cap, &has_prefix); in test_parse_capacity()
159 CU_ASSERT(has_prefix == true); in test_parse_capacity()
161 rc = spdk_parse_capacity("100M 512k", &cap, &has_prefix); in test_parse_capacity()
165 rc = spdk_parse_capacity("12k8K", &cap, &has_prefix); in test_parse_capacity()
168 CU_ASSERT(has_prefix == true); in test_parse_capacity()
171 rc = spdk_parse_capacity("G", &cap, &has_prefix); in test_parse_capacity()
174 rc = spdk_parse_capacity("darsto", &cap, &has_prefix); in test_parse_capacity()