File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -4606,6 +4606,17 @@ func testChannelClientInfo(v *Nvim) func(*testing.T) {
4606
4606
)
4607
4607
4608
4608
t .Run ("Nvim" , func (t * testing.T ) {
4609
+ t .Run ("Channels" , func (t * testing.T ) {
4610
+ chans , err := v .Channels ()
4611
+ if err != nil {
4612
+ t .Fatal (err )
4613
+ }
4614
+
4615
+ if len (chans ) == 0 {
4616
+ t .Fatalf ("want any channels but got %d" , len (chans ))
4617
+ }
4618
+ })
4619
+
4609
4620
clientName := clientNamePrefix + "Nvim"
4610
4621
4611
4622
t .Run ("SetClientInfo" , func (t * testing.T ) {
@@ -4640,6 +4651,19 @@ func testChannelClientInfo(v *Nvim) func(*testing.T) {
4640
4651
4641
4652
t .Run ("Batch" , func (t * testing.T ) {
4642
4653
b := v .NewBatch ()
4654
+
4655
+ t .Run ("Channels" , func (t * testing.T ) {
4656
+ var chans []* Channel
4657
+ b .Channels (& chans )
4658
+ if err := b .Execute (); err != nil {
4659
+ t .Fatal (err )
4660
+ }
4661
+
4662
+ if len (chans ) == 0 {
4663
+ t .Fatalf ("want any channels but got %d" , len (chans ))
4664
+ }
4665
+ })
4666
+
4643
4667
clientName := clientNamePrefix + "Batch"
4644
4668
4645
4669
t .Run ("SetClientInfo" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments