Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: go/src/infra/libs/git/emptyObject_test.go

Issue 662113003: Drover's back, baby! (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git/+/master
Patch Set: more tests and refactors Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « go/src/infra/libs/git/emptyObject.go ('k') | go/src/infra/libs/git/git.goconvey » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "testing"
9
10 . "github.com/smartystreets/goconvey/convey"
11 )
12
13 func TestEmptyObject(t *testing.T) {
14 t.Parallel()
15
16 db := MakeObjectID("deadbeefdeadbeefdeadbeefdeadbeefdeadbeef")
17
18 Convey("EmptyObject", t, func() {
19 for _, typ := range []string{"blob", "commit", "tree"} {
20 typ := MakeObjectType(typ)
21 Convey("NewEmptyObject("+typ.String()+")", func() {
22 e := NewEmptyObject(typ, db)
23 So(e, ShouldNotBeNil)
24 So(e.Complete(), ShouldBeFalse)
25 So(e.ID(), ShouldEqual, db)
26 })
27 }
28 })
29
30 }
OLDNEW
« no previous file with comments | « go/src/infra/libs/git/emptyObject.go ('k') | go/src/infra/libs/git/git.goconvey » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698