()
| 674 | |
| 675 | #[test] |
| 676 | fn extracts_app_code() { |
| 677 | assert_eq!( |
| 678 | app_code(br#"{"appCode": "CoW Swap", "version": "0.9.0"}"#), |
| 679 | Some("CoW Swap".to_string()), |
| 680 | ); |
| 681 | assert_eq!(app_code(EMPTY.as_bytes()), None); |
| 682 | assert_eq!(app_code(br#"{"version": "0.9.0"}"#), None); |
| 683 | assert_eq!(app_code(b"not json"), None); |
| 684 | } |
| 685 | |
| 686 | #[test] |
| 687 | fn examples() { |
nothing calls this directly
no outgoing calls
no test coverage detected