-
Notifications
You must be signed in to change notification settings - Fork 10
/
nop_test.go
36 lines (26 loc) · 758 Bytes
/
nop_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2014 The lime Authors.
// Use of this source code is governed by a 2-clause
// BSD-style license that can be found in the LICENSE file.
package commands
import (
"testing"
"github.com/limetext/backend"
)
func TestRunApplication(t *testing.T) {
nopApplication := NopApplication{}
if nopApplication.Run() != nil {
t.Error("No op application command running returns not nil")
}
}
func TestRunNopWindow(t *testing.T) {
nopWindow := NopWindow{}
if nopWindow.Run(&backend.Window{}) != nil {
t.Error("No op window command running returns not nil")
}
}
func TestRunNopText(t *testing.T) {
nopText := NopText{}
if nopText.Run(&backend.View{}, &backend.Edit{}) != nil {
t.Error("No op text command running returns not nil")
}
}