tree-wide: format code with gofmt
This commit is contained in:
parent
345cd6a746
commit
4f2ac6a687
3 changed files with 9 additions and 9 deletions
|
|
@ -9,16 +9,16 @@ import (
|
|||
func TestJSONConversions(t *testing.T) {
|
||||
type TestJson struct {
|
||||
Ibs ImageBuildState `json:"ibs"`
|
||||
Cs ComposeState `json:"cs"`
|
||||
Cs ComposeState `json:"cs"`
|
||||
}
|
||||
typedCases := []TestJson{
|
||||
{
|
||||
Ibs: IBWaiting,
|
||||
Cs: CWaiting,
|
||||
Cs: CWaiting,
|
||||
},
|
||||
{
|
||||
Ibs: IBRunning,
|
||||
Cs: CFailed,
|
||||
Cs: CFailed,
|
||||
},
|
||||
}
|
||||
strCases := []string{
|
||||
|
|
@ -55,5 +55,5 @@ func TestJSONConversions(t *testing.T) {
|
|||
t.Error("Unmarshaled compose request is not the one expected")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
)
|
||||
|
||||
func TestGetState(t *testing.T) {
|
||||
cases := []struct{
|
||||
compose Compose
|
||||
cases := []struct {
|
||||
compose Compose
|
||||
expecedStatus common.ComposeState
|
||||
}{
|
||||
{
|
||||
|
|
@ -121,5 +121,5 @@ func TestGetState(t *testing.T) {
|
|||
if got != wanted {
|
||||
t.Error("Compose", n, "should be in", wanted.ToString(), "state, but it is:", got.ToString())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ func (api *API) submit(writer http.ResponseWriter, request *http.Request, _ http
|
|||
}
|
||||
|
||||
type Repository struct {
|
||||
URL string `json:"url"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
// JSON structure expected from the client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue