Skip to content

Commit

Permalink
internal: inline context
Browse files Browse the repository at this point in the history
(prettier imports)

Change-Id: I0a52c39c877de4d9e62419de50ed31070e69ff00
Reviewed-on: https://code-review.googlesource.com/c/35430
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Eno Compton <enocom@google.com>
  • Loading branch information
jeanbza committed Nov 9, 2018
1 parent ac5a4b2 commit 193e596
Show file tree
Hide file tree
Showing 190 changed files with 190 additions and 380 deletions.
3 changes: 1 addition & 2 deletions bigquery/benchmarks/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
package main

import (
"context"
"encoding/json"
"flag"
"io/ioutil"
"log"
"time"

"context"

"cloud.google.com/go/bigquery"
"google.golang.org/api/iterator"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
package bigquery

import (
"context"
"fmt"
"io"
"net/http"
"time"

"context"

"cloud.google.com/go/internal"
"cloud.google.com/go/internal/version"
gax "github.com/googleapis/gax-go"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery

import (
"context"
"errors"
"fmt"
"time"

"context"

"cloud.google.com/go/internal/optional"
"cloud.google.com/go/internal/trace"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
package bigquery

import (
"context"
"errors"
"strconv"
"testing"
"time"

"context"

"cloud.google.com/go/internal/testutil"
"github.com/google/go-cmp/cmp"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery_test

import (
"context"
"fmt"
"os"
"time"

"context"

"cloud.google.com/go/bigquery"
"google.golang.org/api/iterator"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/inserter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery

import (
"context"
"errors"
"fmt"
"reflect"

"context"

"cloud.google.com/go/internal/trace"
bq "google.golang.org/api/bigquery/v2"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package bigquery

import (
"context"
"encoding/json"
"errors"
"flag"
Expand All @@ -28,8 +29,6 @@ import (
"testing"
"time"

"context"

"cloud.google.com/go/civil"
"cloud.google.com/go/httpreplay"
"cloud.google.com/go/internal"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
package bigquery

import (
"context"
"fmt"
"reflect"

"context"

bq "google.golang.org/api/bigquery/v2"
"google.golang.org/api/iterator"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery

import (
"context"
"errors"
"fmt"
"testing"

"context"

"cloud.google.com/go/internal/testutil"
"google.golang.org/api/iterator"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery

import (
"context"
"errors"
"fmt"
"time"

"context"

"cloud.google.com/go/internal"
"cloud.google.com/go/internal/trace"
gax "github.com/googleapis/gax-go"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
package bigquery

import (
"io"

"context"
"io"

"cloud.google.com/go/internal/trace"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/oc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
package bigquery

import (
"testing"

"context"
"testing"

"cloud.google.com/go/internal/testutil"
)
Expand Down
3 changes: 1 addition & 2 deletions bigquery/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
package bigquery

import (
"context"
"errors"
"math"
"math/big"
"reflect"
"testing"
"time"

"context"

"cloud.google.com/go/civil"
"cloud.google.com/go/internal/testutil"
"github.com/google/go-cmp/cmp"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
package bigquery

import (
"errors"

"context"
"errors"

"cloud.google.com/go/internal/trace"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
package bigquery

import (
"context"
"errors"
"testing"

"context"

"cloud.google.com/go/internal/testutil"
"github.com/google/go-cmp/cmp"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigquery/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package bigquery

import (
"context"
"errors"
"fmt"
"time"

"context"

"cloud.google.com/go/internal/optional"
"cloud.google.com/go/internal/trace"
bq "google.golang.org/api/bigquery/v2"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ limitations under the License.
package bigtable

import (
"context"
"errors"
"fmt"
"math"
"regexp"
"strings"
"time"

"context"

"cloud.google.com/go/bigtable/internal/gax"
btopt "cloud.google.com/go/bigtable/internal/option"
"cloud.google.com/go/iam"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
package bigtable

import (
"context"
"fmt"
"math"
"sort"
"strings"
"testing"
"time"

"context"

"cloud.google.com/go/internal/testutil"
"github.com/golang/protobuf/proto"
"google.golang.org/api/iterator"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ limitations under the License.
package bigtable // import "cloud.google.com/go/bigtable"

import (
"context"
"errors"
"fmt"
"io"
"strconv"
"time"

"context"

"cloud.google.com/go/bigtable/internal/gax"
btopt "cloud.google.com/go/bigtable/internal/option"
"github.com/golang/protobuf/proto"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/bigtable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ limitations under the License.
package bigtable

import (
"context"
"fmt"
"math/rand"
"strings"
"sync"
"testing"
"time"

"context"

"cloud.google.com/go/internal/testutil"
"github.com/google/go-cmp/cmp"
"google.golang.org/api/option"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/bttest/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ limitations under the License.
package bttest_test

import (
"context"
"fmt"
"log"

"context"

"cloud.google.com/go/bigtable"
"cloud.google.com/go/bigtable/bttest"
"google.golang.org/api/option"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/bttest/inmem.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ package bttest // import "cloud.google.com/go/bigtable/bttest"

import (
"bytes"
"context"
"encoding/binary"
"fmt"
"log"
Expand All @@ -42,8 +43,6 @@ import (
"sync"
"time"

"context"

emptypb "github.com/golang/protobuf/ptypes/empty"
"github.com/golang/protobuf/ptypes/wrappers"
"github.com/google/btree"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/bttest/inmem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package bttest

import (
"context"
"fmt"
"math/rand"
"strconv"
Expand All @@ -23,8 +24,6 @@ import (
"testing"
"time"

"context"

"github.com/golang/protobuf/proto"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/cmd/cbt/cbt.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package main

import (
"bytes"
"context"
"encoding/csv"
"flag"
"fmt"
Expand All @@ -35,8 +36,6 @@ import (
"text/template"
"time"

"context"

"cloud.google.com/go/bigtable"
"cloud.google.com/go/bigtable/internal/cbtconfig"
"google.golang.org/api/iterator"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/cmd/loadtest/loadtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package main

import (
"bytes"
"context"
"flag"
"fmt"
"log"
Expand All @@ -31,8 +32,6 @@ import (
"sync/atomic"
"time"

"context"

"cloud.google.com/go/bigtable"
"cloud.google.com/go/bigtable/internal/cbtconfig"
"cloud.google.com/go/bigtable/internal/stat"
Expand Down
3 changes: 1 addition & 2 deletions bigtable/cmd/scantest/scantest.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package main

import (
"bytes"
"context"
"flag"
"fmt"
"log"
Expand All @@ -32,8 +33,6 @@ import (
"text/tabwriter"
"time"

"context"

"cloud.google.com/go/bigtable"
"cloud.google.com/go/bigtable/internal/cbtconfig"
"cloud.google.com/go/bigtable/internal/stat"
Expand Down
Loading

0 comments on commit 193e596

Please sign in to comment.