mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 10:54:48 +08:00
16 lines
326 B
Go
16 lines
326 B
Go
|
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")
|
||
|
}
|
||
|
}
|