MCPcopy
hub / github.com/jesseduffield/lazygit / Add

Method Add

pkg/utils/string_pool.go:11–14  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

9}
10
11func (self *StringPool) Add(s string) *string {
12 poolEntry, _ := self.LoadOrStore(s, &s)
13 return poolEntry.(*string)
14}

Callers 6

TestRenderCommitGraphFunction · 0.95
TestRenderPipeSetFunction · 0.95
TestGetNextPipesFunction · 0.95
CreateRepoHistoryMethod · 0.45
TestAsyncHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestRenderCommitGraphFunction · 0.76
TestRenderPipeSetFunction · 0.76
TestGetNextPipesFunction · 0.76
TestAsyncHandlerFunction · 0.36