LCOV - code coverage report
Current view: top level - src/compiler/hash_tables - schema_table.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 3 100.0 %
Date: 2016-11-30 13:12:14 Functions: 3 11 27.3 %
Branches: 4 14 28.6 %

           Branch data     Line data    Source code
       1                 :            :  /* Note: only one hash table can be implemented a single file. */
       2                 :            : #include "../symbols.h"
       3                 :            : #include "hash/hash_table_def.h"
       4         [ #  # ]:        298 : DEFINE_HASH_TABLE(fb_schema_table)
       5                 :            : 
       6                 :            : #include "hash/hash_table_impl.h"
       7                 :            : 
       8                 :            : static inline int ht_match(const void *key, size_t len, fb_schema_t *schema)
       9                 :            : {
      10 [ +  + ][ -  + ]:         64 :     return len == (size_t)schema->name.name.s.len && memcmp(key, schema->name.name.s.s, len) == 0;
         [ #  # ][ #  # ]
         [ -  + ][ #  # ]
      11                 :            : }
      12                 :            : 
      13                 :            : static inline const void *ht_key(fb_schema_t *schema)
      14                 :            : {
      15                 :            :     return schema->name.name.s.s;
      16                 :            : }
      17                 :            : 
      18                 :            : static inline size_t ht_key_len(fb_schema_t *schema)
      19                 :            : {
      20                 :         99 :     return schema->name.name.s.len;
      21                 :            : }

Generated by: LCOV version 1.12