Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dpelle
Copy link
Member

@dpelle dpelle commented Dec 20, 2017

This PR adds tests for backticks command expansion expand('`...`')
and backticks expression expansion expand('`=...`') which were not
tested according to codecov:

https://codecov.io/gh/vim/vim/src/master/src/misc1.c#L11042

PR also fixes a few typos.

The test of expand() function is currently in testdir/test_normal.vim.
It might be best to move it to test_function.vim, but
I did not do that to keep the diff simpler.

@codecov-io
Copy link

Codecov Report

Merging #2479 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2479      +/-   ##
==========================================
+ Coverage   74.57%   74.57%   +<.01%     
==========================================
  Files          92       92              
  Lines      132856   132855       -1     
  Branches    29140    31040    +1900     
==========================================
+ Hits        99075    99082       +7     
+ Misses      33781    33738      -43     
- Partials        0       35      +35
Impacted Files Coverage Δ
src/libvterm/src/screen.c 46.65% <0%> (-6.7%) ⬇️
src/gui_beval.c 62.23% <0%> (-0.43%) ⬇️
src/if_py_both.h 76.45% <0%> (-0.15%) ⬇️
src/ex_cmds2.c 80.19% <0%> (-0.1%) ⬇️
src/gui_gtk_x11.c 47.7% <0%> (-0.05%) ⬇️
src/window.c 81.74% <0%> (-0.04%) ⬇️
src/gui.c 47.47% <0%> (ø) ⬆️
src/channel.c 82.76% <0%> (+0.04%) ⬆️
src/message.c 68.77% <0%> (+0.09%) ⬆️
src/if_xcmdsrv.c 84.71% <0%> (+0.17%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bd999f...87618c4. Read the comment docs.

@dpelle dpelle changed the title Test backticks expansion: expand('...) and expand('=...) Test backticks expansion: expand('...') and expand('=...') Dec 20, 2017
@brammool brammool closed this in ae6f865 Dec 20, 2017
@brammool
Copy link
Contributor

brammool commented Dec 20, 2017 via email

adizero pushed a commit to adizero/vim that referenced this pull request May 19, 2018
Problem:    No test for expanding backticks.
Solution:   Add a test. (Dominique Pelle, closes vim#2479)
janlazo added a commit to janlazo/neovim that referenced this pull request Aug 16, 2018
Problem:    No test for expanding backticks.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#2479)
vim/vim@ae6f865
janlazo added a commit to janlazo/neovim that referenced this pull request Aug 18, 2018
Problem:    No test for expanding backticks.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#2479)
vim/vim@ae6f865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants