1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package main
import (
"strings"
"testing"
"mm/internal/config"
"mm/internal/version"
)
// --about lists the built-in tools by hand; every name the config reserves
// must be in it, so a new built-in tool cannot be forgotten there again (the
// list stopped at lsp for seven releases).
func TestAboutListsEveryBuiltinTool(t *testing.T) {
about := version.About()
for _, name := range config.BuiltinToolNames {
if !strings.Contains(about, name) {
t.Errorf("mm --about does not list the built-in tool %q", name)
}
}
}
|