Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuseferi committed Jan 3, 2023
1 parent 4a60d87 commit ff14d8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bigquery_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (
"google.golang.org/api/option"
)

// MockBigQuery is a basic function that create a bigquery mocked client for you.
// projectName is project name which you wanted to be considered as bigquery project in the mocked service.
// source is the source data which you want to be added to the mocked service, it could a yaml source file or on the Fly sourcing see https://github.com/yuseferi/bigquery-mock for more information.
func MockBigQuery(projectName string, sources ...server.Source) (client *bigquery.Client, err error) {
ctx := context.Background()
bqServer, err := server.New(server.MemoryStorage)
Expand Down

0 comments on commit ff14d8f

Please sign in to comment.