()
| 970 | |
| 971 | #[test] |
| 972 | fn insert_block_after() { |
| 973 | let mut layout = Layout::new(); |
| 974 | let e0 = Block::new(0); |
| 975 | let e1 = Block::new(1); |
| 976 | let e2 = Block::new(2); |
| 977 | |
| 978 | layout.append_block(e1); |
| 979 | layout.insert_block_after(e2, e1); |
| 980 | verify(&mut layout, &[(e1, &[]), (e2, &[])]); |
| 981 | |
| 982 | layout.insert_block_after(e0, e1); |
| 983 | verify(&mut layout, &[(e1, &[]), (e0, &[]), (e2, &[])]); |
| 984 | } |
| 985 | |
| 986 | #[test] |
| 987 | fn append_inst() { |
nothing calls this directly
no test coverage detected