comparison src/testdir/test_profile.vim @ 18120:ed222e264905 v8.1.2055

patch 8.1.2055: not easy to jump to function line from profile Commit: https://github.com/vim/vim/commit/181d4f58cc421f2e6d3b16333d4cb70d35ad1342 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 18 22:04:56 2019 +0200 patch 8.1.2055: not easy to jump to function line from profile Problem: Not easy to jump to function line from profile. Solution: Use "file:99" instead of "file line 99" so that "gf" works. (Daniel Hahler, closes #4951)
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Sep 2019 22:15:03 +0200
parents 48fd0712dad8
children dd028abdde0f
comparison
equal deleted inserted replaced
18119:40a1b1bc457e 18120:ed222e264905
53 " for v:profiling. 53 " for v:profiling.
54 " - Bar() is not reported since it does not match "profile func Foo*". 54 " - Bar() is not reported since it does not match "profile func Foo*".
55 call assert_equal(30, len(lines)) 55 call assert_equal(30, len(lines))
56 56
57 call assert_equal('FUNCTION Foo1()', lines[0]) 57 call assert_equal('FUNCTION Foo1()', lines[0])
58 call assert_match('Defined:.*Xprofile_func.vim', lines[1]) 58 call assert_match('Defined:.*Xprofile_func.vim:3', lines[1])
59 call assert_equal('Called 2 times', lines[2]) 59 call assert_equal('Called 2 times', lines[2])
60 call assert_match('^Total time:\s\+\d\+\.\d\+$', lines[3]) 60 call assert_match('^Total time:\s\+\d\+\.\d\+$', lines[3])
61 call assert_match('^ Self time:\s\+\d\+\.\d\+$', lines[4]) 61 call assert_match('^ Self time:\s\+\d\+\.\d\+$', lines[4])
62 call assert_equal('', lines[5]) 62 call assert_equal('', lines[5])
63 call assert_equal('count total (s) self (s)', lines[6]) 63 call assert_equal('count total (s) self (s)', lines[6])