Skip to content

Commit

Permalink
Regenerate code with service mocking support
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Nov 21, 2022
1 parent 5503c80 commit e6a774b
Show file tree
Hide file tree
Showing 72 changed files with 4,685 additions and 3,928 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ During the Beta period, you must clone and then reference this repository locall
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down Expand Up @@ -191,7 +191,7 @@ import (
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down Expand Up @@ -274,7 +274,7 @@ import (
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down Expand Up @@ -357,7 +357,7 @@ import (
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down Expand Up @@ -426,7 +426,7 @@ import (
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down Expand Up @@ -470,7 +470,7 @@ import (
)
func init() {
databricks.WithProduct("your-product", "0.0.1")
databricks.WithProduct("awesome-product", "0.0.1")
}
func main() {
Expand Down
235 changes: 205 additions & 30 deletions accounts/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions databricks/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ package databricks
import "net/http"

func NewMockConfig(auth func(r *http.Request) error) *Config {
if auth == nil {
auth = func(r *http.Request) error {
return nil
}
}
return &Config{
AuthType: "mock",
auth: auth,
Expand Down
Loading

0 comments on commit e6a774b

Please sign in to comment.