File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ var firebaseScopes = []string{
3535}
3636
3737// Version of the Firebase Go Admin SDK.
38- const Version = "0 .0.1 "
38+ const Version = "1 .0.0 "
3939
4040// An App holds configuration and state common to all Firebase services that are exposed from the SDK.
4141type App struct {
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import (
1919 "net/http"
2020 "net/http/httptest"
2121 "os"
22+ "strconv"
23+ "strings"
2224 "testing"
2325 "time"
2426
@@ -231,6 +233,18 @@ func TestCustomTokenSource(t *testing.T) {
231233 }
232234}
233235
236+ func TestVersion (t * testing.T ) {
237+ segments := strings .Split (Version , "." )
238+ if len (segments ) != 3 {
239+ t .Errorf ("Incorrect number of segments: %d; want: 3" , len (segments ))
240+ }
241+ for _ , segment := range segments {
242+ if _ , err := strconv .Atoi (segment ); err != nil {
243+ t .Errorf ("Invalid segment in version number: %q; want integer" , segment )
244+ }
245+ }
246+ }
247+
234248type testTokenSource struct {
235249 AccessToken string
236250 Expiry time.Time
You can’t perform that action at this time.
0 commit comments