summaryrefslogtreecommitdiffstats
path: root/common/hugo/hugo_test.go
diff options
context:
space:
mode:
authorrazonyang <razonyang@gmail.com>2024-02-29 23:58:57 +0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-03-07 14:04:41 +0100
commit1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a (patch)
treec0a1c264fb899ea45525543e4b74a86a870e6914 /common/hugo/hugo_test.go
parentada3fceea839c2abc0e22eafbb683a4df42f5bae (diff)
Add hugo.IsMultiHost
Diffstat (limited to 'common/hugo/hugo_test.go')
-rw-r--r--common/hugo/hugo_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/hugo/hugo_test.go b/common/hugo/hugo_test.go
index e252dffbe..e76d80000 100644
--- a/common/hugo/hugo_test.go
+++ b/common/hugo/hugo_test.go
@@ -68,6 +68,7 @@ type testConfig struct {
environment string
running bool
workingDir string
+ multihost bool
}
func (c testConfig) Environment() string {
@@ -81,3 +82,7 @@ func (c testConfig) Running() bool {
func (c testConfig) WorkingDir() string {
return c.workingDir
}
+
+func (c testConfig) IsMultihost() bool {
+ return c.multihost
+}