| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package git |
| 6 |
| 7 import ( |
| 8 "fmt" |
| 9 "testing" |
| 10 |
| 11 . "github.com/smartystreets/goconvey/convey" |
| 12 ) |
| 13 |
| 14 func TestNewEmptyChild(t *testing.T) { |
| 15 t.Parallel() |
| 16 Convey("NewEmptyChild", t, func() { |
| 17 mode := Mode(040000) |
| 18 hexpect := "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" |
| 19 c, err := NewEmptyChild(mode, MakeObjectID(hexpect)) |
| 20 So(err, ShouldBeNil) |
| 21 So(c.Mode, ShouldEqual, mode) |
| 22 So(c.String(), ShouldEqual, fmt.Sprintf("Child(EmptyObject(%s, t
ree), 0%0o)", hexpect, mode)) |
| 23 }) |
| 24 } |
| OLD | NEW |