bots-garden/mini-mepublic Fork
⑂ feature/open-terminal
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. 7087d46 · on feature/open-terminal · k33g · 9d ago
about_tools_test.go · 21 lines · 532 BGo Blame HistoryRaw
 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)
		}
	}
}