MCPcopy Index your code
hub / github.com/git-bug/git-bug / TestTreeEntryFormat

Function TestTreeEntryFormat

repository/tree_entry_test.go:9–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestTreeEntryFormat(t *testing.T) {
10 entries := []TreeEntry{
11 {Blob, Hash("a85730cf5287d40a1e32d3a671ba2296c73387cb"), "name"},
12 {Tree, Hash("a85730cf5287d40a1e32d3a671ba2296c73387cb"), "name"},
13 }
14
15 for _, entry := range entries {
16 _ = entry.Format()
17 }
18}
19
20func TestTreeEntryParse(t *testing.T) {
21 lines := []string{

Callers

nothing calls this directly

Calls 2

HashTypeAlias · 0.85
FormatMethod · 0.45

Tested by

no test coverage detected