MCPcopy
hub / github.com/slimtoolkit/slim / artifactsByFilePath

Function artifactsByFilePath

pkg/test/e2e/sensor/sensor.go:1005–1013  ·  view source on GitHub ↗
(files []*report.ArtifactProps)

Source from the content-addressed store, hash-verified

1003}
1004
1005func artifactsByFilePath(files []*report.ArtifactProps) map[string]*report.ArtifactProps {
1006 dict := make(map[string]*report.ArtifactProps)
1007 for _, props := range files {
1008 if props != nil {
1009 dict[props.FilePath] = props
1010 }
1011 }
1012 return dict
1013}
1014
1015func mondelEventByFilePath(events []report.MonitorDataEvent) map[string]report.MonitorDataEvent {
1016 dict := make(map[string]report.MonitorDataEvent)

Calls

no outgoing calls

Tested by

no test coverage detected