File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,16 @@ func TestRegister(t *testing.T) {
42
42
)
43
43
44
44
p .HandleCommand (
45
- & plugin.CommandOptions {Name : "Hello" , NArgs : "*" },
45
+ & plugin.CommandOptions {
46
+ Name : "Hello" ,
47
+ NArgs : "*" ,
48
+ Range : "%" ,
49
+ Addr : "buffers" ,
50
+ Complete : "buffer" ,
51
+ Bang : true ,
52
+ Register : true ,
53
+ Bar : true ,
54
+ },
46
55
func (n * nvim.Nvim , args []string ) error {
47
56
chunks := []nvim.TextChunk {
48
57
{
@@ -104,14 +113,16 @@ func TestRegister(t *testing.T) {
104
113
t .Fatalf ("exec 'Hello' command: %v" , err )
105
114
}
106
115
107
- expected := `HelloWorld `
116
+ expected := `Helloorld `
108
117
if result != expected {
109
118
t .Fatalf ("Hello returned %q, want %q" , result , expected )
110
119
}
111
120
})
112
121
}
113
122
114
123
func TestSubscribe (t * testing.T ) {
124
+ t .Parallel ()
125
+
115
126
p := plugin .New (nvimtest .NewChildProcess (t ))
116
127
117
128
const event1 = "event1"
You can’t perform that action at this time.
0 commit comments