fn create_table_2() -> tables::Tables {
            let mut tables = tables::Tables::default();
            let root_span = tables.get_root_parent_span();
            let (span1,) = tables.register_spans(
                root_span,
                types::SpanExpansionKind::Root,
                String::from("expansion2"),
                String::from("location2"),
                2,
                2,
            );
            let (span2,) = tables.register_spans(
                span1,
                types::SpanExpansionKind::Root,
                String::from("expansion3"),
                String::from("location4"),
                4,
                4,
            );
            let (span3,) = tables.register_spans(
                span2,
                types::SpanExpansionKind::Root,
                String::from("expansion4"),
                String::from("location2"),
                2,
                2,
            );
            tables.register_spans(
                span3,
                types::SpanExpansionKind::Root,
                String::from("expansion5"),
                String::from("location7"),
                7,
                7,
            );
            assert_eq!(tables.interning_tables.strings.len(), 7);
            assert_eq!(tables.interning_tables.span_file_names.len(), 3);
            assert_eq!(tables.relations.spans.len(), 4);
            assert_eq!(tables.counters.spans, 5);
            tables
        }
// Create and populate tables 2.
Create and populate tables 2.
Create and populate tables 2 .
fn create_table_2() -> tables::Tables {
            let mut tables = tables::Tables::default();
            let root_span = tables.get_root_parent_span();
            let (span1,) = tables.register_spans(
                root_span,
                types::SpanExpansionKind::Root,
                String::from("expansion2"),
                String::from("location2"),
                2,
                2,
            );
            let (span2,) = tables.register_spans(
                span1,
                types::SpanExpansionKind::Root,
                String::from("expansion3"),
                String::from("location4"),
                4,
                4,
            );
            let (span3,) = tables.register_spans(
                span2,
                types::SpanExpansionKind::Root,
                String::from("expansion4"),
                String::from("location2"),
                2,
                2,
            );
            tables.register_spans(
                span3,
                types::SpanExpansionKind::Root,
                String::from("expansion5"),
                String::from("location7"),
                7,
                7,
            );
            assert_eq!(tables.interning_tables.strings.len(), 7);
            assert_eq!(tables.interning_tables.span_file_names.len(), 3);
            assert_eq!(tables.relations.spans.len(), 4);
            assert_eq!(tables.counters.spans, 5);
            tables
        }
fn create_table_2 ( ) -> tables :: Tables { let mut tables = tables :: Tables :: default ( ) ; let root_span = tables . get_root_parent_span ( ) ; let ( span1 , ) = tables . register_spans ( root_span , types :: SpanExpansionKind :: Root , String :: from ( " " ) , String :: from ( " " ) , 2 , 2 , ) ; let ( span2 , ) = tables . register_spans ( span1 , types :: SpanExpansionKind :: Root , String :: from ( " " ) , String :: from ( " " ) , 4 , 4 , ) ; let ( span3 , ) = tables . register_spans ( span2 , types :: SpanExpansionKind :: Root , String :: from ( " " ) , String :: from ( " " ) , 2 , 2 , ) ; tables . register_spans ( span3 , types :: SpanExpansionKind :: Root , String :: from ( " " ) , String :: from ( " " ) , 7 , 7 , ) ; assert_eq ! ( tables interning_tables strings len ( ) 7 ) ; assert_eq ! ( tables interning_tables span_file_names len ( ) 3 ) ; assert_eq ! ( tables relations spans len ( ) 4 ) ; assert_eq ! ( tables counters spans 5 ) ; tables }
Create and populate tables 2.
Create and populate tables 2 .