Move from go-yaml/yaml to ghodss/yaml

This commit is contained in:
Sam Ghods
2014-11-30 20:12:37 -08:00
parent 603ec33821
commit 9a9a1e0939
27 changed files with 61 additions and 122 deletions

View File

@@ -22,7 +22,7 @@ import (
"testing"
"time"
"gopkg.in/v1/yaml"
"github.com/ghodss/yaml"
)
type TimeHolder struct {
@@ -34,7 +34,7 @@ func TestTimeMarshalYAML(t *testing.T) {
input Time
result string
}{
{Time{}, "t: \"null\"\n"},
{Time{}, "t: null\n"},
{Date(1998, time.May, 5, 5, 5, 5, 50, time.UTC), "t: 1998-05-05T05:05:05Z\n"},
{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: 1998-05-05T05:05:05Z\n"},
}
@@ -56,7 +56,7 @@ func TestTimeUnmarshalYAML(t *testing.T) {
input string
result Time
}{
{"t: \"null\"\n", Time{}},
{"t: null\n", Time{}},
{"t: 1998-05-05T05:05:05Z\n", Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC)},
}