• Home
  • Raw
  • Download

Lines Matching full:tree

127         let tree = || d.clone();  in macros_with_fn()  localVariable
128 add_leaf_to!(tree(), "1"); in macros_with_fn()
130 add_branch_to!(tree()); in macros_with_fn()
131 add_leaf_to!(tree(), "1.1") in macros_with_fn()
133 tree().peek_print(); in macros_with_fn()
250 let tree = TreeBuilder::new(); in disabled_output() localVariable
251 tree.set_enabled(false); in disabled_output()
252 add_leaf_to!(tree, "Leaf"); in disabled_output()
253 tree.add_leaf("Leaf"); in disabled_output()
255 add_branch_to!(tree, "Branch"); in disabled_output()
256 tree.add_branch("Branch"); in disabled_output()
257 assert_eq!("", tree.string()); in disabled_output()
262 let tree = TreeBuilder::new(); in enabled_output() localVariable
263 tree.set_enabled(false); in enabled_output()
264 add_branch_to!(tree, "Ignored branch"); in enabled_output()
265 add_leaf_to!(tree, "Ignored leaf"); in enabled_output()
266 tree.set_enabled(true); in enabled_output()
267 add_leaf_to!(tree, "Leaf"); in enabled_output()
268 tree.add_leaf("Leaf"); in enabled_output()
270 add_branch_to!(tree, "Branch"); in enabled_output()
271 tree.add_branch("Branch"); in enabled_output()
277 tree.string() in enabled_output()
284 let b = tree("B"); in tree_by_name()
310 let d = tree("D"); in tree_by_name_disabled()
336 let tree = TreeBuilder::new(); in defer_write() localVariable
341 defer_write!(tree, "test_out/defer_write.txt"); in defer_write()
342 tree.add_leaf("Branch"); in defer_write()
344 assert_eq!(tree.peek_string(), "Branch"); in defer_write()
346 assert_eq!(tree.peek_string(), ""); in defer_write()
355 let tree = TreeBuilder::new(); in defer_peek_write() localVariable
360 defer_peek_write!(tree, "test_out/defer_peek_write.txt"); in defer_peek_write()
361 tree.add_leaf("Branch"); in defer_peek_write()
363 assert_eq!(tree.peek_string(), "Branch"); in defer_peek_write()
365 assert_eq!(tree.peek_string(), "Branch"); in defer_peek_write()
376 let tree = TreeBuilder::new(); in defer_peek_write_panic() localVariable
381 defer_peek_write!(tree, "test_out/defer_peek_write_panic.txt"); in defer_peek_write_panic()
382 tree.add_leaf("This should be the only line in this file"); in defer_peek_write_panic()
385 tree.peek_string(), in defer_peek_write_panic()
389 tree.add_leaf("This line should not exist"); in defer_peek_write_panic()
394 let tree = TreeBuilder::new(); in example_tree() localVariable
396 add_branch_to!(tree, "1"); in example_tree()
398 add_branch_to!(tree, "1.1"); in example_tree()
399 add_leaf_to!(tree, "1.1.1"); in example_tree()
400 add_leaf_to!(tree, "1.1.2\nWith two\nextra lines"); in example_tree()
401 add_leaf_to!(tree, "1.1.3"); in example_tree()
403 add_branch_to!(tree, "1.2"); in example_tree()
404 add_leaf_to!(tree, "1.2.1"); in example_tree()
407 add_branch_to!(tree, "2"); in example_tree()
408 add_leaf_to!(tree, "2.1"); in example_tree()
409 add_leaf_to!(tree, "2.2"); in example_tree()
411 add_leaf_to!(tree, "3"); in example_tree()
412 tree in example_tree()
417 let tree = example_tree(); in format_output() localVariable
418 tree.set_config_override( in format_output()
434 tree.peek_print(); in format_output()
436 tree.string(), in format_output()
456 let tree = example_tree(); in format_output_thick() localVariable
457 tree.set_config_override( in format_output_thick()
463 tree.peek_print(); in format_output_thick()
465 tree.string(), in format_output_thick()
485 let tree = example_tree(); in format_output_pipes() localVariable
486 tree.set_config_override( in format_output_pipes()
492 tree.peek_print(); in format_output_pipes()
494 tree.string(), in format_output_pipes()
514 let tree = example_tree(); in format_output_dashed() localVariable
515 tree.set_config_override( in format_output_dashed()
521 tree.peek_print(); in format_output_dashed()
523 tree.string(), in format_output_dashed()
543 let tree = example_tree(); in format_output_rounded() localVariable
544 tree.set_config_override( in format_output_rounded()
549 tree.peek_print(); in format_output_rounded()
551 tree.string(), in format_output_rounded()
569 async fn wait_a_bit(tree: TreeBuilder, index: usize) { in wait_a_bit()
570 tree.print(); in wait_a_bit()
571 add_branch_to!(tree, "inside async branch {}", index); in wait_a_bit()
572 tree.print(); in wait_a_bit()
573 add_leaf_to!(tree, "inside async leaf {}", index); in wait_a_bit()
574 tree.print(); in wait_a_bit()
579 let tree = TreeBuilder::new(); in async_barrier() localVariable
580 defer_peek_print!(tree); in async_barrier()
581 add_branch_to!(tree, "root"); in async_barrier()
582 add_leaf_to!(tree, "before async"); in async_barrier()
584 let x2 = wait_a_bit(tree.clone(), 4); in async_barrier()
585 let x1 = wait_a_bit(tree.clone(), 5); in async_barrier()
586 let x3 = wait_a_bit(tree.clone(), 3); in async_barrier()
587 let x4 = wait_a_bit(tree.clone(), 2); in async_barrier()
588 let x5 = wait_a_bit(tree.clone(), 1); in async_barrier()
590 add_leaf_to!(tree, "before join async"); in async_barrier()
593 add_leaf_to!(tree, "after join async"); in async_barrier()
594 assert_eq!(tree.peek_string(), "after join async"); in async_barrier()