Give package a new name

This commit is contained in:
2015-08-29 15:41:20 +03:00
parent d4ec68d29e
commit 3a5e7a894c
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
package confection2
package secondly
import (
"log"
+4 -4
View File
@@ -1,4 +1,4 @@
package confection2
package secondly
import (
"testing"
@@ -6,7 +6,7 @@ import (
func TestExtractFields(t *testing.T) {
c := testConf{
AppName: "Confection",
AppName: "Secondly",
Version: 1.1,
Database: testDatabaseConf{
Adapter: "mysql",
@@ -38,7 +38,7 @@ func TestExtractFields(t *testing.T) {
func TestDiff(t *testing.T) {
c1 := testConf{
AppName: "Confection",
AppName: "Secondly",
Version: 1.3,
Database: testDatabaseConf{
Adapter: "mysql",
@@ -47,7 +47,7 @@ func TestDiff(t *testing.T) {
},
}
c2 := testConf{
AppName: "Confection",
AppName: "Secondly",
Version: 2,
Database: testDatabaseConf{
Adapter: "postgresql",
+1 -1
View File
@@ -1,4 +1,4 @@
package confection2
package secondly
import (
"errors"
+1 -1
View File
@@ -1,4 +1,4 @@
package confection2
package secondly
import (
"encoding/json"
+4 -4
View File
@@ -1,4 +1,4 @@
package confection2
package secondly
import (
"encoding/json"
@@ -20,7 +20,7 @@ type testDatabaseConf struct {
}
const (
goodJSON = `{"app_name": "Confection", "version": 1}`
goodJSON = `{"app_name": "Secondly", "version": 1}`
badJSON = `{"app_name": "noooo...`
)
@@ -47,8 +47,8 @@ func TestUnmarshal(t *testing.T) {
if err := json.Unmarshal([]byte(goodJSON), i); err != nil {
t.Error("Unexpected error")
}
if conf.AppName != "Confection" {
t.Errorf("Expected Foo to equal %q, got %q", "Confection", conf.AppName)
if conf.AppName != "Secondly" {
t.Errorf("Expected Foo to equal %q, got %q", "Secondly", conf.AppName)
}
if conf.Version != 1 {
t.Errorf("Expected Bar to equal %q, got %q", 1, conf.Version)