File: errors_test.go

package info (click to toggle)
golang-github-git-lfs-gitobj 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 432 kB
  • sloc: makefile: 2; sh: 1
file content (15 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package gitobj

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestUnexpectedObjectTypeErrFormatting(t *testing.T) {
	err := &UnexpectedObjectType{
		Got: TreeObjectType, Wanted: BlobObjectType,
	}

	assert.Equal(t, "gitobj: unexpected object type, got: \"tree\", wanted: \"blob\"", err.Error())
}