Branch Coverage

lib/SPVM/Builder/src/spvm_basic_type.c
Criterion Covered Total %
branch 51 64 79.6


line true false branch
110 0 0 if (basic_type_id == SPVM_NATIVE_C_BASIC_TYPE_ID_VOID) {
122 17683428 255060 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE) {
15426788 2256640 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE) {
172 0 0 if (basic_type_id == SPVM_NATIVE_C_BASIC_TYPE_ID_UNDEF) {
183 0 0 if (basic_type_id == SPVM_NATIVE_C_BASIC_TYPE_ID_UNKNOWN) {
194 257518 275036 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE_CLASS && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE_CLASS) {
72270 185248 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE_CLASS && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE_CLASS) {
204 6957 0 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_LONG) {
6938 19 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_LONG) {
214 35788 0 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_INT) {
35783 5 if (basic_type_id >= SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE && basic_type_id <= SPVM_NATIVE_C_BASIC_TYPE_ID_INT) {
228 0 8088 if (!(interface_basic_type->category == SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_INTERFACE)) {
232 21 8067 if (!(basic_type->category == SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_CLASS || basic_type->category == SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_INTERFACE)) {
0 21 if (!(basic_type->category == SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_CLASS || basic_type->category == SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_INTERFACE)) {
236 8200 8078 for (int32_t interface_method_index = 0; interface_method_index < interface_basic_type->methods->length; interface_method_index++) {
239 21293 8190 for (int32_t method_index = 0; method_index < basic_type->methods->length; method_index++) {
244 10 21283 if (method_compatibility == 0) {
255 19713 3793 if (dist_method->is_required && !method) {
10 19703 if (dist_method->is_required && !method) {
256 10 0 if (!dist_method->is_class_method) {
262 20777 2719 if (method) {
263 1 20776 if (method->is_class_method) {
264 1 0 if (!dist_method->is_class_method) {
274 4 20772 if (!(method->required_args_length == dist_method->required_args_length)) {
280 1 20771 if (!(method->args_length >= dist_method->args_length)) {
285 32820 20769 for (int32_t arg_index = 1; arg_index < dist_method->args_length; arg_index++) {
294 2 32818 if (!assignability_for_method) {
309 3 20766 if (!assignability_for_method_definition) {
325 594 66 if (current_parent_basic_type_name) {
326 592 2 if (strcmp(super_basic_type->name, current_parent_basic_type_name) == 0) {
331 0 2 assert(current_parent_basic_type);
344 1646081 780192 if (found_string) {