MCPcopy Index your code
hub / github.com/go-git/go-git / TestValidateInsteadOf

Method TestValidateInsteadOf

config/url_test.go:11–19  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

9var _ = Suite(&URLSuite{})
10
11func (b *URLSuite) TestValidateInsteadOf(c *C) {
12 goodURL := URL{
13 Name: "ssh://github.com",
14 InsteadOf: "http://github.com",
15 }
16 badURL := URL{}
17 c.Assert(goodURL.Validate(), IsNil)
18 c.Assert(badURL.Validate(), NotNil)
19}
20
21func (b *URLSuite) TestMarshal(c *C) {
22 expected := []byte(`[core]

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected