Skip to content

Commit

Permalink
Add skeleton for wire command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Meyer committed May 31, 2015
1 parent ef7b968 commit 22319fb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
1 change: 0 additions & 1 deletion command_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ type wire_command_parser struct {
func (parser *wire_command_parser) parse(command []byte) wire_command {
return &wire_command_begin_scenario{}
}

1 change: 0 additions & 1 deletion command_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ func Test_command_parser_parses_begin_scenario_command(t *testing.T) {
expected := &wire_command_begin_scenario{}
assert.IsType(t, expected, command)
}

2 changes: 1 addition & 1 deletion wire_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type wire_command interface {
}

type generic_wire_command struct{}

func (cmd *generic_wire_command) execute() wire_response {
return &generic_wire_response{}
}
Expand All @@ -15,4 +16,3 @@ type wire_command_begin_scenario struct {
func (command *wire_command_begin_scenario) execute() wire_response {
return &generic_wire_response{}
}

15 changes: 15 additions & 0 deletions wire_command_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package gourd

import (
"github.com/stretchr/testify/assert"
//"github.com/stretchr/testify/mock"
"testing"
)

func Test_RENAME_THIS(t *testing.T) {
testee := &wire_command_begin_scenario{}

testee.execute()

assert.True(t, true)
}
1 change: 0 additions & 1 deletion wire_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ func (response *generic_wire_response) encode() string {
type command_parser interface {
parse() wire_command
}

0 comments on commit 22319fb

Please sign in to comment.