INNER CODE UNIT · Rust

parse_path_requires_storage

gluesql/gluesql · cli/src/lib.rs:296

    fn parse_path_requires_storage() {
        let actual = Args::try_parse_from(["gluesql", "--path", "data.redb"]).unwrap_err();
        assert_eq!(actual.kind(), ErrorKind::MissingRequiredArgument);
    }

    #[test]
    fn parse_dump_rejects_execute() {
        let actual = Args::try_parse_from([
            "gluesql",
            "--storage",
            "memory",
            "--execute",
            "query.sql",
            "--dump",
            "dump.sql",
        ])
        .unwrap_err();
        assert_eq!(actual.kind(), ErrorKind::ArgumentConflict);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…