mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -133,6 +133,14 @@ func (s *IntegrationTestBuilder) AssertFileContent(filename string, matches ...s
|
||||
}
|
||||
}
|
||||
|
||||
func (s *IntegrationTestBuilder) AssertFileContentExact(filename string, matches ...string) {
|
||||
s.Helper()
|
||||
content := s.FileContent(filename)
|
||||
for _, m := range matches {
|
||||
s.Assert(content, qt.Contains, m, qt.Commentf(m))
|
||||
}
|
||||
}
|
||||
|
||||
func (s *IntegrationTestBuilder) AssertDestinationExists(filename string, b bool) {
|
||||
checker := qt.IsTrue
|
||||
if !b {
|
||||
|
Reference in New Issue
Block a user