Skip to content

Commit

Permalink
Bumped version number to 1.0.0; Creating the dev branch. (#9) (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiranya911 committed Aug 30, 2017
1 parent 9770f53 commit b0afe56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion firebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var firebaseScopes = []string{
}

// Version of the Firebase Go Admin SDK.
const Version = "0.0.1"
const Version = "1.0.0"

// An App holds configuration and state common to all Firebase services that are exposed from the SDK.
type App struct {
Expand Down
14 changes: 14 additions & 0 deletions firebase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"net/http"
"net/http/httptest"
"os"
"strconv"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -231,6 +233,18 @@ func TestCustomTokenSource(t *testing.T) {
}
}

func TestVersion(t *testing.T) {
segments := strings.Split(Version, ".")
if len(segments) != 3 {
t.Errorf("Incorrect number of segments: %d; want: 3", len(segments))
}
for _, segment := range segments {
if _, err := strconv.Atoi(segment); err != nil {
t.Errorf("Invalid segment in version number: %q; want integer", segment)
}
}
}

type testTokenSource struct {
AccessToken string
Expiry time.Time
Expand Down

0 comments on commit b0afe56

Please sign in to comment.