Lines Matching refs:a
9 if a:setup
15 set cscopequickfix=s-,g-,d-,c-,t-,e-,f-,i-,a-
43 let a = execute(cmd)
47 call assert_match('\n(1 of 1): <<main>> main(void )', a)
60 let a = execute(cmd)
61 call assert_match('\n(1 of 42): <<mf_hash_init>> mf_hash_init(&ht);', a)
67 let a = execute(cmd)
68 call assert_match('\n(1 of 1): <<main>> test_mf_hash();', a)
74 let a = execute(cmd)
75 call assert_match('(1 of 1): <<<unknown>>> \* VIM - Vi IMproved^Iby Bram Moolenaar', a)
82 let a = execute(cmd)
83 call assert_match('\n(1 of 3): <<<unknown>>> #include <assert.h>', a)
93 let a = execute('lcs find e ^\#includ.')
94 call assert_match('\n(1 of 3): <<<unknown>>> #include <assert.h>', a)
105 let a = execute(cmd)
106 call assert_true(a =~ '"Xmemfile_test.c" \d\+L, \d\+B')
113 let a = execute(cmd)
114 let alines = split(a, '\n', 1)
126 " Test: Find places where this symbol is assigned a value
127 " this needs a cscope >= 15.8
132 for cmd in ['cs find a item', 'cs find 9 item']
133 let a = execute(cmd)
134 …qual(['', '(1 of 4): <<test_mf_hash>> item = LALLOC_CLEAR_ONE(mf_hashitem_T);'], split(a, '\n', 1))
147 let a = execute('cscope find t test_mf_hash')
148 call assert_equal(['', '(1 of 1): <<<unknown>>> test_mf_hash();'], split(a, '\n', 1))
152 let a = execute('scs find t Bram')
153 call assert_match('(1 of 1): <<<unknown>>> \* VIM - Vi IMproved^Iby Bram Moolenaar', a)
158 let a = execute(cmd)
159 call assert_match('^cscope commands:\n', a)
160 call assert_match('\nadd :', a)
161 call assert_match('\nfind :', a)
162 call assert_match('\nhelp : Show this message', a)
163 call assert_match('\nkill : Kill a connection', a)
164 call assert_match('\nreset: Reinit all connections', a)
165 call assert_match('\nshow : Show connections', a)
167 let a = execute('scscope help')
168 call assert_match('This cscope command does not support splitting the window\.', a)
171 let a = execute('cscope reset')
172 call assert_match('\nAdded cscope database.*Xcscope.out (#0)', a)
173 call assert_match('\nAll cscope databases reset', a)
176 let a = execute('cscope show')
177 call assert_match('\n 0 \d\+.*Xcscope.out\s*<none>', a)
181 let a = execute('cstag TEST_COUNT')
182 call assert_match('(1 of 1): <<TEST_COUNT>> #define TEST_COUNT 50000', a)
186 let a = execute('cstag index_to_key')
187 call assert_match('(1 of 1): <<index_to_key>> #define index_to_key(i) ((i) ^ 15167)', a)
194 let a = execute('cstag index_to_key')
195 call assert_match('(1 of 1): <<index_to_key>> #define index_to_key(i) ((i) ^ 15167)', a)
202 let a = execute('tag TEST_COUNT')
203 call assert_match('(1 of 1): <<TEST_COUNT>> #define TEST_COUNT 50000', a)
205 let a = execute('tags')
206 call assert_match('1 1 TEST_COUNT\s\+\d\+\s\+#define index_to_key', a)
211 let a = execute('cs find g test_mf_hash')
214 let a = execute('cs find g test_mf_hash')
233 let a = execute('cscope kill 0')
234 call assert_match('cscope connection 0 closed', a)
237 let a = execute('cscope kill Xcscope.out')
238 call assert_match('cscope connection Xcscope.out closed', a)
241 let a = execute('cscope kill -1')
242 call assert_match('cscope connection .*Xcscope.out closed', a)
243 let a = execute('cscope kill -1')
244 call assert_equal('', a)
255 let a = execute('cscope show')
256 call assert_match('\n 0 \d\+.*Xcscope.out\s*<none>', a)
257 call assert_match('\n 1 \d\+.*Xcscope2.out\s*\.', a)
267 call assert_equal('"cs find a c d e f g i s t', @:)
302 " Cscope doesn't handle symlinks, so this needs to be resolved in case a
308 let a = execute('cscope show')
309 let lines = split(a, "\n", 1)
323 set cscopequickfix=s-,g-,d+,c-,t+,e-,f0,i-,a-
324 call assert_equal('s-,g-,d+,c-,t+,e-,f0,i-,a-', &cscopequickfix)
329 call assert_fails('set cscopequickfix=s-a', 'E474:')
336 let a = execute('cscope show')
337 call assert_match('no cscope connections', a)