Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interoperability with gomock #131

Merged
merged 5 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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