15 lines · 326 B · Go
RawDownload
package http import (	"strings"	"testing") func TestHelpPrefixTemplate(t *testing.T) {	// This test assumes template variables are placed correctly.	const testPrefix = "template-help-test"	helpMessage := TemplateHelp(testPrefix)	if !strings.Contains(helpMessage, testPrefix) {		t.Fatal("flag prefix not found")	}}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t