Skip to content

Commit b0afe56

Browse files
authored
Bumped version number to 1.0.0; Creating the dev branch. (#9) (#10)
1 parent 9770f53 commit b0afe56

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

firebase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
4141
type App struct {

firebase_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
234248
type testTokenSource struct {
235249
AccessToken string
236250
Expiry time.Time

0 commit comments

Comments
 (0)