MCPcopy Index your code
hub / github.com/docker/docker-agent / cloneStringSlice

Function cloneStringSlice

pkg/session/branch.go:340–345  ·  view source on GitHub ↗
(src []string)

Source from the content-addressed store, hash-verified

338}
339
340func cloneStringSlice(src []string) []string {
341 if src == nil {
342 return nil
343 }
344 return slices.Clone(src)
345}
346
347func setParentIDs(sess *Session) {
348 if sess == nil {

Callers 7

CloneMethod · 0.85
copySessionMetadataFunction · 0.85
cloneEvalCriteriaFunction · 0.85
cloneEvalResultFunction · 0.85
clonePermissionsConfigFunction · 0.85
UpdateSessionMethod · 0.85
UpdateSessionMethod · 0.85

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected