-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support to print list of implemented steps (#2433)
* add support to print list of implemented steps usage: gauge list --steps Signed-off-by: sriv <[email protected]> * bump version -> 1.5.7 Signed-off-by: sriv <[email protected]> * fix linter error for errcheck Signed-off-by: sriv <[email protected]> --------- Signed-off-by: sriv <[email protected]>
- Loading branch information
Showing
5 changed files
with
124 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*---------------------------------------------------------------- | ||
* Copyright (c) ThoughtWorks, Inc. | ||
* Licensed under the Apache License, Version 2.0 | ||
* See LICENSE in the project root for license information. | ||
*----------------------------------------------------------------*/ | ||
|
||
package cmd | ||
|
||
import ( | ||
"net" | ||
|
||
"github.com/getgauge/gauge-proto/go/gauge_messages" | ||
"github.com/getgauge/gauge/runner" | ||
) | ||
|
||
type mockRunner struct { | ||
response *gauge_messages.Message | ||
} | ||
|
||
func (r *mockRunner) ExecuteAndGetStatus(m *gauge_messages.Message) *gauge_messages.ProtoExecutionResult { | ||
return nil | ||
} | ||
|
||
func (r *mockRunner) ExecuteMessageWithTimeout(m *gauge_messages.Message) (*gauge_messages.Message, error) { | ||
return r.response, nil | ||
} | ||
|
||
func (r *mockRunner) Alive() bool { | ||
return true | ||
} | ||
|
||
func (r *mockRunner) Kill() error { | ||
return nil | ||
} | ||
|
||
func (r *mockRunner) Connection() net.Conn { | ||
return nil | ||
} | ||
|
||
func (r *mockRunner) IsMultithreaded() bool { | ||
return false | ||
} | ||
|
||
func (r *mockRunner) Info() *runner.RunnerInfo { | ||
return &runner.RunnerInfo{Killed: false} | ||
} | ||
|
||
func (r *mockRunner) Pid() int { | ||
return 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters