MCPcopy Create free account
hub / github.com/bufbuild/buf / ModuleSetNonTargetModules

Function ModuleSetNonTargetModules

private/bufpkg/bufmodule/module_set.go:113–118  ·  view source on GitHub ↗

ModuleSetNonTargetModules is a convenience function that returns the non-target Modules from a ModuleSet.

(moduleSet ModuleSet)

Source from the content-addressed store, hash-verified

111// ModuleSetNonTargetModules is a convenience function that returns the non-target Modules
112// from a ModuleSet.
113func ModuleSetNonTargetModules(moduleSet ModuleSet) []Module {
114 return xslices.Filter(
115 moduleSet.Modules(),
116 func(module Module) bool { return !module.IsTarget() },
117 )
118}
119
120// ModuleSetLocalModules is a convenience function that returns the local Modules
121// from a ModuleSet.

Callers 1

Calls 3

FilterMethod · 0.65
ModulesMethod · 0.65
IsTargetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…