-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config builders for each procedure type
- Loading branch information
1 parent
86cd61b
commit 88152d1
Showing
11 changed files
with
1,518 additions
and
0 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
16 changes: 16 additions & 0 deletions
16
pkg/acceptance/bettertestspoc/config/model/procedure_java_model_ext.go
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,16 @@ | ||
package model | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
func (f *ProcedureJavaModel) MarshalJSON() ([]byte, error) { | ||
type Alias ProcedureJavaModel | ||
return json.Marshal(&struct { | ||
*Alias | ||
DependsOn []string `json:"depends_on,omitempty"` | ||
}{ | ||
Alias: (*Alias)(f), | ||
DependsOn: f.DependsOn(), | ||
}) | ||
} |
321 changes: 321 additions & 0 deletions
321
pkg/acceptance/bettertestspoc/config/model/procedure_java_model_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
pkg/acceptance/bettertestspoc/config/model/procedure_javascript_model_ext.go
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,16 @@ | ||
package model | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
func (f *ProcedureJavascriptModel) MarshalJSON() ([]byte, error) { | ||
type Alias ProcedureJavascriptModel | ||
return json.Marshal(&struct { | ||
*Alias | ||
DependsOn []string `json:"depends_on,omitempty"` | ||
}{ | ||
Alias: (*Alias)(f), | ||
DependsOn: f.DependsOn(), | ||
}) | ||
} |
Oops, something went wrong.