()
| 108 | } |
| 109 | |
| 110 | #[test] |
| 111 | fn directive_parse_globl() { |
| 112 | assert_eq!( |
| 113 | Directive::parse(".globl main"), |
| 114 | Some(Directive::Globl("main".to_owned())) |
| 115 | ); |
| 116 | assert_eq!( |
| 117 | Directive::parse(".global _start"), |
| 118 | Some(Directive::Globl("_start".to_owned())) |
| 119 | ); |
| 120 | } |
| 121 | |
| 122 | #[test] |
nothing calls this directly
no outgoing calls
no test coverage detected