mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:07:07 +08:00
16 lines
316 B
Go
16 lines
316 B
Go
|
package http
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestHelpPrefixAuth(t *testing.T) {
|
||
|
// This test assumes template variables are placed correctly.
|
||
|
const testPrefix = "server-help-test"
|
||
|
helpMessage := AuthHelp(testPrefix)
|
||
|
if !strings.Contains(helpMessage, testPrefix) {
|
||
|
t.Fatal("flag prefix not found")
|
||
|
}
|
||
|
}
|