mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +02:00
add all the plugins
This commit is contained in:
29
plugins/agent/command/animate/animate_test.go
Normal file
29
plugins/agent/command/animate/animate_test.go
Normal file
@ -0,0 +1,29 @@
|
||||
package animate
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAnimate(t *testing.T) {
|
||||
// TODO: fix test
|
||||
return
|
||||
|
||||
testData := []struct {
|
||||
text string
|
||||
}{
|
||||
{"funny cat"},
|
||||
}
|
||||
|
||||
command := Animate()
|
||||
|
||||
for _, d := range testData {
|
||||
rsp, err := command.Exec("animate", d.text)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if rsp == nil {
|
||||
t.Fatal("expected result, got nil")
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user