summaryrefslogtreecommitdiffstats
path: root/test-format-config.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-10-21 11:54:20 +0100
committerMichael Allen <michael@michaelallen.io>2015-10-21 11:54:20 +0100
commit13110aea3cf060d698a195ab123d912f42114f5f (patch)
treef96f4ac3f6a7bbb835984cab7f9e2651feaeeec2 /test-format-config.sh
parent40445543f10f4e10cc13ea8a9e4ba0a79cb200db (diff)
parent934f6fd5b317476e7680bfd07dc2b685b5c37c4d (diff)
downloadgit-sonar-13110aea3cf060d698a195ab123d912f42114f5f.tar.gz
git-sonar-13110aea3cf060d698a195ab123d912f42114f5f.zip
Merge branch 'master' of github.com:michaeldfallen/git-radar into hallzy_#70
Diffstat (limited to '')
-rwxr-xr-xtest-format-config.sh212
1 files changed, 106 insertions, 106 deletions
diff --git a/test-format-config.sh b/test-format-config.sh
index 5504ebc..72ac60d 100755
--- a/test-format-config.sh
+++ b/test-format-config.sh
@@ -124,111 +124,111 @@ test_all_options_set_config() {
rm_tmp
}
-test_reorder_parts() {
- prepare_test_repo
-
- export GIT_RADAR_FORMAT="%{branch}%{local}%{changes}%{remote}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "foo1↑1Am 1 →" "$prompt"
-
- export GIT_RADAR_FORMAT="%{local}%{changes}%{remote}%{branch}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "1↑1Am 1 →foo" "$prompt"
-
- export GIT_RADAR_FORMAT="%{changes}%{remote}%{branch}%{local}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "1Am 1 →foo1↑" "$prompt"
-
- rm_tmp
-}
-
-test_prefix_and_suffix_changes() {
- prepare_test_repo
-
- export GIT_RADAR_FORMAT="%{changes}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "1A" "$prompt"
-
- export GIT_RADAR_FORMAT="%{[:changes:]}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "[1A]" "$prompt"
-
- rm_tmp
-}
-
-test_prefix_and_suffix_local() {
- prepare_test_repo
-
- export GIT_RADAR_FORMAT="%{local}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "1↑" "$prompt"
-
- export GIT_RADAR_FORMAT="%{[:local:]}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "[1↑]" "$prompt"
-
- rm_tmp
-}
-
-test_prefix_and_suffix_branch() {
- prepare_test_repo
-
- export GIT_RADAR_FORMAT="%{branch}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "foo" "$prompt"
-
- export GIT_RADAR_FORMAT="%{[:branch:]}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "[foo]" "$prompt"
-
- rm_tmp
-}
-
-test_prefix_and_suffix_remote() {
- prepare_test_repo
-
- export GIT_RADAR_FORMAT="%{remote}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "m 1 →" "$prompt"
-
- export GIT_RADAR_FORMAT="%{[:remote:]}"
- prepare_zsh_colors
- unset_colours
-
- prompt="$(render_prompt)"
- assertEquals "[m 1 →]" "$prompt"
-
- rm_tmp
-}
+#test_reorder_parts() {
+# prepare_test_repo
+#
+# export GIT_RADAR_FORMAT="%{branch}%{local}%{changes}%{remote}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "foo1↑1Am 1 →" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{local}%{changes}%{remote}%{branch}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "1↑1Am 1 →foo" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{changes}%{remote}%{branch}%{local}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "1Am 1 →foo1↑" "$prompt"
+#
+# rm_tmp
+#}
+#
+#test_prefix_and_suffix_changes() {
+# prepare_test_repo
+#
+# export GIT_RADAR_FORMAT="%{changes}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "1A" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{[:changes:]}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "[1A]" "$prompt"
+#
+# rm_tmp
+#}
+#
+#test_prefix_and_suffix_local() {
+# prepare_test_repo
+#
+# export GIT_RADAR_FORMAT="%{local}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "1↑" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{[:local:]}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "[1↑]" "$prompt"
+#
+# rm_tmp
+#}
+#
+#test_prefix_and_suffix_branch() {
+# prepare_test_repo
+#
+# export GIT_RADAR_FORMAT="%{branch}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "foo" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{[:branch:]}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "[foo]" "$prompt"
+#
+# rm_tmp
+#}
+#
+#test_prefix_and_suffix_remote() {
+# prepare_test_repo
+#
+# export GIT_RADAR_FORMAT="%{remote}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "m 1 →" "$prompt"
+#
+# export GIT_RADAR_FORMAT="%{[:remote:]}"
+# prepare_zsh_colors
+# unset_colours
+#
+# prompt="$(render_prompt)"
+# assertEquals "[m 1 →]" "$prompt"
+#
+# rm_tmp
+#}
. ./shunit/shunit2