ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Yuya Nishihara 7090fa0374 templater: report syntax error, don't panic()
Even though the template syntax is experimental, panicking parser makes
it difficult to write tests. So let's add minimal error handling. The error
types are basically copied from the revset module.

I made write_commit_summary() fall back to the default template if user
template had syntax error. It should be better than reporting parse error
after e.g. "jj abandon" finished successfully.
2023-02-03 12:06:04 +09:00
..
common tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_abandon_command.rs Make jj abandon print each abandoned commit once 2023-01-17 21:17:27 -08:00
test_alias.rs jj log: Change the default of ui.unique-prefixes to "styled" 2023-01-30 22:48:38 -08:00
test_branch_command.rs
test_cat_command.rs cli: rename print to cat 2023-01-18 10:10:02 -08:00
test_checkout.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_commit_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_commit_template.rs jj log: Change the default of ui.unique-prefixes to "styled" 2023-01-30 22:48:38 -08:00
test_concurrent_operations.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_config_command.rs Don't output implicit defaults from "config list" 2023-02-01 19:49:57 -06:00
test_debug_command.rs Add "jj debug config-schema" command to output JSON schema 2023-01-03 22:02:25 -06:00
test_describe_command.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_diff_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_diffedit_command.rs tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_duplicate_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_edit_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_git_clone.rs
test_git_colocated.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_git_import_export.rs git: add git.auto-local-branch 2023-01-29 20:17:49 -08:00
test_git_push.rs cli: report no updates to current branch 2023-01-29 22:07:28 -08:00
test_git_remotes.rs
test_gitignores.rs
test_global_opts.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_init_command.rs jj log: Change the default of ui.unique-prefixes to "styled" 2023-01-30 22:48:38 -08:00
test_interdiff_command.rs
test_log_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_move_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_new_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_obslog_command.rs jj log: Change the default of ui.unique-prefixes to "styled" 2023-01-30 22:48:38 -08:00
test_operations.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_rebase_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_resolve_command.rs formatter: don't write escape codes until we write text 2023-01-13 21:47:50 -08:00
test_restore_command.rs
test_revset_output.rs jj log: Change the default of ui.unique-prefixes to "styled" 2023-01-30 22:48:38 -08:00
test_show_command.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_sparse_command.rs
test_split_command.rs split: give warning when given paths don't match anything 2023-02-01 07:15:38 +01:00
test_squash_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_status_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_templater.rs templater: report syntax error, don't panic() 2023-02-03 12:06:04 +09:00
test_undo.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_unsquash_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_untrack_command.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_workspaces.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00