MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_extract_propline_errors_on_bad_prefix

Function test_extract_propline_errors_on_bad_prefix

cli/src/propline.rs:142–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140
141 #[test]
142 fn test_extract_propline_errors_on_bad_prefix() {
143 let error = do_extract("#!/usr/bin/env endbasic\n' endbasic cli: nope\n").unwrap_err();
144 assert_eq!(io::ErrorKind::InvalidInput, error.kind());
145 assert_eq!("Invalid EndBASIC propline: ' endbasic cli: nope", error.to_string());
146 }
147
148 #[test]
149 fn test_extract_propline_errors_on_empty_console_spec() {

Callers

nothing calls this directly

Calls 1

do_extractFunction · 0.85

Tested by

no test coverage detected