mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -670,10 +670,10 @@ func TestFindCWD(t *testing.T) {
|
||||
|
||||
//cwd, _ := os.Getwd()
|
||||
data := []test{
|
||||
//{cwd, nil},
|
||||
// Commenting this out. It doesn't work properly.
|
||||
// There's a good reason why we don't use os.Getwd(), it doesn't actually work the way we want it to.
|
||||
// I really don't know a better way to test this function. - SPF 2014.11.04
|
||||
//{cwd, nil},
|
||||
// Commenting this out. It doesn't work properly.
|
||||
// There's a good reason why we don't use os.Getwd(), it doesn't actually work the way we want it to.
|
||||
// I really don't know a better way to test this function. - SPF 2014.11.04
|
||||
}
|
||||
for i, d := range data {
|
||||
dir, err := FindCWD()
|
||||
|
@@ -41,14 +41,14 @@ type processingStatsTitleVal struct {
|
||||
|
||||
func (s *ProcessingStats) toVals() []processingStatsTitleVal {
|
||||
return []processingStatsTitleVal{
|
||||
processingStatsTitleVal{"Pages", s.Pages},
|
||||
processingStatsTitleVal{"Paginator pages", s.PaginatorPages},
|
||||
processingStatsTitleVal{"Non-page files", s.Files},
|
||||
processingStatsTitleVal{"Static files", s.Static},
|
||||
processingStatsTitleVal{"Processed images", s.ProcessedImages},
|
||||
processingStatsTitleVal{"Aliases", s.Aliases},
|
||||
processingStatsTitleVal{"Sitemaps", s.Sitemaps},
|
||||
processingStatsTitleVal{"Cleaned", s.Cleaned},
|
||||
{"Pages", s.Pages},
|
||||
{"Paginator pages", s.PaginatorPages},
|
||||
{"Non-page files", s.Files},
|
||||
{"Static files", s.Static},
|
||||
{"Processed images", s.ProcessedImages},
|
||||
{"Aliases", s.Aliases},
|
||||
{"Sitemaps", s.Sitemaps},
|
||||
{"Cleaned", s.Cleaned},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user