diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-08-20 19:37:18 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-08-21 22:03:28 -0400 |
| commit | ed49d9d866f8260842ea177fa9ce31dbc398701d (patch) | |
| tree | 55073aa69bc14ff0df1acecad432b66d6ff20c23 /test/functional/fixtures | |
| parent | 545e7a416310c9ff700b2afed9eef834c8948c8b (diff) | |
| download | rneovim-ed49d9d866f8260842ea177fa9ce31dbc398701d.tar.gz rneovim-ed49d9d866f8260842ea177fa9ce31dbc398701d.tar.bz2 rneovim-ed49d9d866f8260842ea177fa9ce31dbc398701d.zip | |
CheckHealth: Accept [plugin1 [, plugin2 [, ...]]] args.
To healthcheck the "foo" plugin:
:CheckHealth foo
To healthcheck the "foo" and "bar" plugins:
:CheckHealth foo bar
To run all auto-discovered healthchecks:
:CheckHealth
Diffstat (limited to 'test/functional/fixtures')
| -rw-r--r-- | test/functional/fixtures/autoload/health/broken.vim | 3 | ||||
| -rw-r--r-- | test/functional/fixtures/autoload/health/success1.vim | 6 | ||||
| -rw-r--r-- | test/functional/fixtures/autoload/health/success2.vim | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/fixtures/autoload/health/broken.vim b/test/functional/fixtures/autoload/health/broken.vim new file mode 100644 index 0000000000..a2a595b96f --- /dev/null +++ b/test/functional/fixtures/autoload/health/broken.vim @@ -0,0 +1,3 @@ +function! health#broken#check() + throw 'caused an error' +endfunction diff --git a/test/functional/fixtures/autoload/health/success1.vim b/test/functional/fixtures/autoload/health/success1.vim new file mode 100644 index 0000000000..a360347455 --- /dev/null +++ b/test/functional/fixtures/autoload/health/success1.vim @@ -0,0 +1,6 @@ +function! health#success1#check() + call health#report_start("report 1") + call health#report_ok("everything is fine") + call health#report_start("report 2") + call health#report_ok("nothing to see here") +endfunction diff --git a/test/functional/fixtures/autoload/health/success2.vim b/test/functional/fixtures/autoload/health/success2.vim new file mode 100644 index 0000000000..b742b4879d --- /dev/null +++ b/test/functional/fixtures/autoload/health/success2.vim @@ -0,0 +1,4 @@ +function! health#success2#check() + call health#report_start("another 1") + call health#report_ok("ok") +endfunction |