MCPcopy Create free account
hub / github.com/coreboot/coreboot / fmap_find_area_test

Function fmap_find_area_test

util/cbfstool/test.c:136–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static int fmap_find_area_test(struct fmap *fmap)
137{
138 status = fail;
139 char area_name[] = "test_area_1";
140
141 if (fmap_find_area(NULL, area_name) ||
142 fmap_find_area(fmap, NULL)) {
143 printf("FAILURE: failed to abort on NULL pointer input\n");
144 goto fmap_find_area_test_exit;
145 }
146
147 if (fmap_find_area(fmap, area_name) == NULL) {
148 printf("FAILURE: failed to find \"%s\"\n", area_name);
149 goto fmap_find_area_test_exit;
150 }
151
152 status = pass;
153fmap_find_area_test_exit:
154 return status;
155}
156
157static int fmap_flags_to_string_test(void)
158{

Callers 1

fmap_testFunction · 0.85

Calls 2

printfFunction · 0.85
fmap_find_areaFunction · 0.50

Tested by

no test coverage detected