diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2019-10-24 23:33:57 +0300 |
---|---|---|
committer | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2019-10-24 23:37:27 +0300 |
commit | 81627ab53e269a762b769b47c004cb4309452492 (patch) | |
tree | cc7274d6f63f02112d407f9d0da5ddbc5ea2eaa1 /config | |
parent | aac20cc0e86f9f563bc74c42e9b9c598dfe271da (diff) | |
download | go-git-81627ab53e269a762b769b47c004cb4309452492.tar.gz |
Fix typos in comments, variables and function names
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/branch_test.go | 4 | ||||
-rw-r--r-- | config/config_test.go | 6 | ||||
-rw-r--r-- | config/modules_test.go | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/config/branch_test.go b/config/branch_test.go index 2dbe888..6d9ca86 100644 --- a/config/branch_test.go +++ b/config/branch_test.go @@ -38,7 +38,7 @@ func (b *BranchSuite) TestValidateMerge(c *C) { c.Assert(badBranch.Validate(), NotNil) } -func (b *BranchSuite) TestMarshall(c *C) { +func (b *BranchSuite) TestMarshal(c *C) { expected := []byte(`[core] bare = false [branch "branch-tracking-on-clone"] @@ -60,7 +60,7 @@ func (b *BranchSuite) TestMarshall(c *C) { c.Assert(string(actual), Equals, string(expected)) } -func (b *BranchSuite) TestUnmarshall(c *C) { +func (b *BranchSuite) TestUnmarshal(c *C) { input := []byte(`[core] bare = false [branch "branch-tracking-on-clone"] diff --git a/config/config_test.go b/config/config_test.go index db0932c..54eb5e1 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -9,7 +9,7 @@ type ConfigSuite struct{} var _ = Suite(&ConfigSuite{}) -func (s *ConfigSuite) TestUnmarshall(c *C) { +func (s *ConfigSuite) TestUnmarshal(c *C) { input := []byte(`[core] bare = true worktree = foo @@ -60,7 +60,7 @@ func (s *ConfigSuite) TestUnmarshall(c *C) { c.Assert(cfg.Branches["master"].Merge, Equals, plumbing.ReferenceName("refs/heads/master")) } -func (s *ConfigSuite) TestMarshall(c *C) { +func (s *ConfigSuite) TestMarshal(c *C) { output := []byte(`[core] bare = true worktree = bar @@ -119,7 +119,7 @@ func (s *ConfigSuite) TestMarshall(c *C) { c.Assert(string(b), Equals, string(output)) } -func (s *ConfigSuite) TestUnmarshallMarshall(c *C) { +func (s *ConfigSuite) TestUnmarshalMarshal(c *C) { input := []byte(`[core] bare = true worktree = foo diff --git a/config/modules_test.go b/config/modules_test.go index 8e10d70..8ea68e7 100644 --- a/config/modules_test.go +++ b/config/modules_test.go @@ -39,7 +39,7 @@ func (s *ModulesSuite) TestValidateMissingName(c *C) { c.Assert(m.Validate(), Equals, ErrModuleEmptyPath) } -func (s *ModulesSuite) TestMarshall(c *C) { +func (s *ModulesSuite) TestMarshal(c *C) { input := []byte(`[submodule "qux"] path = qux url = baz @@ -54,7 +54,7 @@ func (s *ModulesSuite) TestMarshall(c *C) { c.Assert(output, DeepEquals, input) } -func (s *ModulesSuite) TestUnmarshall(c *C) { +func (s *ModulesSuite) TestUnmarshal(c *C) { input := []byte(`[submodule "qux"] path = qux url = https://github.com/foo/qux.git @@ -79,7 +79,7 @@ func (s *ModulesSuite) TestUnmarshall(c *C) { c.Assert(cfg.Submodules["foo/bar"].Branch, Equals, "dev") } -func (s *ModulesSuite) TestUnmarshallMarshall(c *C) { +func (s *ModulesSuite) TestUnmarshalMarshal(c *C) { input := []byte(`[submodule "foo/bar"] path = foo/bar url = https://github.com/foo/bar.git |