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{
35
35
}
36
36
37
37
// Version of the Firebase Go Admin SDK.
38
- const Version = "0 .0.1 "
38
+ const Version = "1 .0.0 "
39
39
40
40
// An App holds configuration and state common to all Firebase services that are exposed from the SDK.
41
41
type App struct {
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import (
19
19
"net/http"
20
20
"net/http/httptest"
21
21
"os"
22
+ "strconv"
23
+ "strings"
22
24
"testing"
23
25
"time"
24
26
@@ -231,6 +233,18 @@ func TestCustomTokenSource(t *testing.T) {
231
233
}
232
234
}
233
235
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
+
234
248
type testTokenSource struct {
235
249
AccessToken string
236
250
Expiry time.Time
You can’t perform that action at this time.
0 commit comments