DetectAll returns all frameworks that should be included
()
| 114 | |
| 115 | // DetectAll returns all frameworks that should be included |
| 116 | func (r *Registry) DetectAll() ([]Framework, []string, error) { |
| 117 | var matched []Framework |
| 118 | var names []string |
| 119 | |
| 120 | for _, framework := range r.frameworks { |
| 121 | if name, err := framework.Detect(); err == nil && name != "" { |
| 122 | matched = append(matched, framework) |
| 123 | names = append(names, name) |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | return matched, names, nil |
| 128 | } |
| 129 | |
| 130 | // Type aliases for backward compatibility |
| 131 | // All VCAP types and functions are now in common package |
no test coverage detected