LCOV - code coverage report
Current view: top level - seahorn/jobs/hash_iter_begin - aws_hash_iter_begin_harness.c (source / functions) Hit Total Coverage
Test: all_fuzz.info Lines: 18 18 100.0 %
Date: 2021-04-23 16:28:21 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /**
       2             :  */
       3             : 
       4             : #include <aws/common/hash_table.h>
       5             : #include <aws/common/private/hash_table_impl.h>
       6             : 
       7             : #include <seahorn/seahorn.h>
       8             : 
       9             : #include <config.h>
      10             : #include <hash_table_helper.h>
      11             : #include <proof_allocators.h>
      12             : #include <utils.h>
      13             : 
      14      150000 : int main(void) {
      15      150000 :   struct aws_hash_table map;
      16      150000 : 
      17      150000 :   initialize_bounded_aws_hash_table(&map, MAX_TABLE_SIZE);
      18      150000 :   assume(aws_hash_table_is_valid(&map));
      19      150000 : 
      20      150000 :   struct store_byte_from_buffer old_byte;
      21      150000 :   save_byte_from_hash_table(&map, &old_byte);
      22      150000 : 
      23      150000 :   struct aws_hash_iter iter = aws_hash_iter_begin(&map);
      24      150000 : 
      25      150000 :   sassert(aws_hash_iter_is_valid(&iter));
      26      150000 :   sassert(iter.status == AWS_HASH_ITER_STATUS_DONE ||
      27      150000 :           iter.status == AWS_HASH_ITER_STATUS_READY_FOR_USE);
      28      150000 :   sassert(aws_hash_table_is_valid(&map));
      29      150000 :   assert_hash_table_unchanged(&map, &old_byte);
      30      150000 :   return 0;
      31      150000 : }

Generated by: LCOV version 1.13