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) {
4242 )
4343
4444 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+ },
4655 func (n * nvim.Nvim , args []string ) error {
4756 chunks := []nvim.TextChunk {
4857 {
@@ -104,14 +113,16 @@ func TestRegister(t *testing.T) {
104113 t .Fatalf ("exec 'Hello' command: %v" , err )
105114 }
106115
107- expected := `HelloWorld `
116+ expected := `Helloorld `
108117 if result != expected {
109118 t .Fatalf ("Hello returned %q, want %q" , result , expected )
110119 }
111120 })
112121}
113122
114123func TestSubscribe (t * testing.T ) {
124+ t .Parallel ()
125+
115126 p := plugin .New (nvimtest .NewChildProcess (t ))
116127
117128 const event1 = "event1"
You can’t perform that action at this time.
0 commit comments