From 2a0329423ce4b3359842affad76c40140d426943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 28 Jan 2024 11:41:59 +0100 Subject: [PATCH] testing: Rename integration_test.go to PACKAGE_integration_test.go Primary motivation making them easier to find in the code editor. --- .../{integration_test.go => filecache_integration_test.go} | 0 common/htime/{integration_test.go => htime_integration_test.go} | 0 .../{integration_test.go => allconfig_integration_test.go} | 0 hugolib/{integration_test.go => hugolib_integration_test.go} | 0 hugolib/integrationtest_builder.go | 1 + langs/i18n/{integration_test.go => i18n_integration_test.go} | 0 .../{integration_test.go => codeblocks_integration_test.go} | 0 .../{integration_test.go => goldmark_integration_test.go} | 0 .../images/{integration_test.go => images_integration_test.go} | 0 .../{integration_test.go => highlight_integration_test.go} | 0 .../{integration_test.go => tableofcontents_integration_test.go} | 0 related/{integration_test.go => related_integration_test.go} | 0 resources/page/{integration_test.go => page_integration_test.go} | 0 .../create/{integration_test.go => create_integration_test.go} | 0 .../babel/{integration_test.go => babel_integration_test.go} | 0 .../js/{integration_test.go => js_integration_test.go} | 0 .../{integration_test.go => minifier_integration_test.go} | 0 .../postcss/{integration_test.go => postcss_integration_test.go} | 0 .../{integration_test.go => templates_integration_test.go} | 0 .../{integration_test.go => dartsass_integration_test.go} | 0 .../tocss/scss/{integration_test.go => scss_integration_test.go} | 0 resources/{integration_test.go => resources_integration_test.go} | 0 .../{integration_test.go => collections_integration_test.go} | 0 tpl/debug/{integration_test.go => debug_integration_test.go} | 0 tpl/fmt/{integration_test.go => fmt_integration_test.go} | 0 tpl/images/{integration_test.go => images_integration_test.go} | 0 .../{integration_test.go => openapi3_integration_test.go} | 0 tpl/os/{integration_test.go => os_integration_test.go} | 0 tpl/page/{integration_test.go => page_integration_test.go} | 0 .../{integration_test.go => partials_integration_test.go} | 0 .../{integration_test.go => resources_integration_test.go} | 0 .../{integration_test.go => templates_integration_test.go} | 0 tpl/tplimpl/{integration_test.go => tplimpl_integration_test.go} | 0 .../{integration_test.go => transform_integration_test.go} | 0 34 files changed, 1 insertion(+) rename cache/filecache/{integration_test.go => filecache_integration_test.go} (100%) rename common/htime/{integration_test.go => htime_integration_test.go} (100%) rename config/allconfig/{integration_test.go => allconfig_integration_test.go} (100%) rename hugolib/{integration_test.go => hugolib_integration_test.go} (100%) rename langs/i18n/{integration_test.go => i18n_integration_test.go} (100%) rename markup/goldmark/codeblocks/{integration_test.go => codeblocks_integration_test.go} (100%) rename markup/goldmark/{integration_test.go => goldmark_integration_test.go} (100%) rename markup/goldmark/images/{integration_test.go => images_integration_test.go} (100%) rename markup/highlight/{integration_test.go => highlight_integration_test.go} (100%) rename markup/tableofcontents/{integration_test.go => tableofcontents_integration_test.go} (100%) rename related/{integration_test.go => related_integration_test.go} (100%) rename resources/page/{integration_test.go => page_integration_test.go} (100%) rename resources/resource_factories/create/{integration_test.go => create_integration_test.go} (100%) rename resources/resource_transformers/babel/{integration_test.go => babel_integration_test.go} (100%) rename resources/resource_transformers/js/{integration_test.go => js_integration_test.go} (100%) rename resources/resource_transformers/minifier/{integration_test.go => minifier_integration_test.go} (100%) rename resources/resource_transformers/postcss/{integration_test.go => postcss_integration_test.go} (100%) rename resources/resource_transformers/templates/{integration_test.go => templates_integration_test.go} (100%) rename resources/resource_transformers/tocss/dartsass/{integration_test.go => dartsass_integration_test.go} (100%) rename resources/resource_transformers/tocss/scss/{integration_test.go => scss_integration_test.go} (100%) rename resources/{integration_test.go => resources_integration_test.go} (100%) rename tpl/collections/{integration_test.go => collections_integration_test.go} (100%) rename tpl/debug/{integration_test.go => debug_integration_test.go} (100%) rename tpl/fmt/{integration_test.go => fmt_integration_test.go} (100%) rename tpl/images/{integration_test.go => images_integration_test.go} (100%) rename tpl/openapi/openapi3/{integration_test.go => openapi3_integration_test.go} (100%) rename tpl/os/{integration_test.go => os_integration_test.go} (100%) rename tpl/page/{integration_test.go => page_integration_test.go} (100%) rename tpl/partials/{integration_test.go => partials_integration_test.go} (100%) rename tpl/resources/{integration_test.go => resources_integration_test.go} (100%) rename tpl/templates/{integration_test.go => templates_integration_test.go} (100%) rename tpl/tplimpl/{integration_test.go => tplimpl_integration_test.go} (100%) rename tpl/transform/{integration_test.go => transform_integration_test.go} (100%) diff --git a/cache/filecache/integration_test.go b/cache/filecache/filecache_integration_test.go similarity index 100% rename from cache/filecache/integration_test.go rename to cache/filecache/filecache_integration_test.go diff --git a/common/htime/integration_test.go b/common/htime/htime_integration_test.go similarity index 100% rename from common/htime/integration_test.go rename to common/htime/htime_integration_test.go diff --git a/config/allconfig/integration_test.go b/config/allconfig/allconfig_integration_test.go similarity index 100% rename from config/allconfig/integration_test.go rename to config/allconfig/allconfig_integration_test.go diff --git a/hugolib/integration_test.go b/hugolib/hugolib_integration_test.go similarity index 100% rename from hugolib/integration_test.go rename to hugolib/hugolib_integration_test.go diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go index 34d3c5530c5..3fec04df0f7 100644 --- a/hugolib/integrationtest_builder.go +++ b/hugolib/integrationtest_builder.go @@ -90,6 +90,7 @@ func TestRunning(t testing.TB, files string, opts ...TestOpt) *IntegrationTestBu return NewIntegrationTestBuilder(cfg).Build() } +// In most cases you should not use this function directly, but the Test or TestRunning function. func NewIntegrationTestBuilder(conf IntegrationTestConfig) *IntegrationTestBuilder { // Code fences. conf.TxtarString = strings.ReplaceAll(conf.TxtarString, "ยงยงยง", "```") diff --git a/langs/i18n/integration_test.go b/langs/i18n/i18n_integration_test.go similarity index 100% rename from langs/i18n/integration_test.go rename to langs/i18n/i18n_integration_test.go diff --git a/markup/goldmark/codeblocks/integration_test.go b/markup/goldmark/codeblocks/codeblocks_integration_test.go similarity index 100% rename from markup/goldmark/codeblocks/integration_test.go rename to markup/goldmark/codeblocks/codeblocks_integration_test.go diff --git a/markup/goldmark/integration_test.go b/markup/goldmark/goldmark_integration_test.go similarity index 100% rename from markup/goldmark/integration_test.go rename to markup/goldmark/goldmark_integration_test.go diff --git a/markup/goldmark/images/integration_test.go b/markup/goldmark/images/images_integration_test.go similarity index 100% rename from markup/goldmark/images/integration_test.go rename to markup/goldmark/images/images_integration_test.go diff --git a/markup/highlight/integration_test.go b/markup/highlight/highlight_integration_test.go similarity index 100% rename from markup/highlight/integration_test.go rename to markup/highlight/highlight_integration_test.go diff --git a/markup/tableofcontents/integration_test.go b/markup/tableofcontents/tableofcontents_integration_test.go similarity index 100% rename from markup/tableofcontents/integration_test.go rename to markup/tableofcontents/tableofcontents_integration_test.go diff --git a/related/integration_test.go b/related/related_integration_test.go similarity index 100% rename from related/integration_test.go rename to related/related_integration_test.go diff --git a/resources/page/integration_test.go b/resources/page/page_integration_test.go similarity index 100% rename from resources/page/integration_test.go rename to resources/page/page_integration_test.go diff --git a/resources/resource_factories/create/integration_test.go b/resources/resource_factories/create/create_integration_test.go similarity index 100% rename from resources/resource_factories/create/integration_test.go rename to resources/resource_factories/create/create_integration_test.go diff --git a/resources/resource_transformers/babel/integration_test.go b/resources/resource_transformers/babel/babel_integration_test.go similarity index 100% rename from resources/resource_transformers/babel/integration_test.go rename to resources/resource_transformers/babel/babel_integration_test.go diff --git a/resources/resource_transformers/js/integration_test.go b/resources/resource_transformers/js/js_integration_test.go similarity index 100% rename from resources/resource_transformers/js/integration_test.go rename to resources/resource_transformers/js/js_integration_test.go diff --git a/resources/resource_transformers/minifier/integration_test.go b/resources/resource_transformers/minifier/minifier_integration_test.go similarity index 100% rename from resources/resource_transformers/minifier/integration_test.go rename to resources/resource_transformers/minifier/minifier_integration_test.go diff --git a/resources/resource_transformers/postcss/integration_test.go b/resources/resource_transformers/postcss/postcss_integration_test.go similarity index 100% rename from resources/resource_transformers/postcss/integration_test.go rename to resources/resource_transformers/postcss/postcss_integration_test.go diff --git a/resources/resource_transformers/templates/integration_test.go b/resources/resource_transformers/templates/templates_integration_test.go similarity index 100% rename from resources/resource_transformers/templates/integration_test.go rename to resources/resource_transformers/templates/templates_integration_test.go diff --git a/resources/resource_transformers/tocss/dartsass/integration_test.go b/resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go similarity index 100% rename from resources/resource_transformers/tocss/dartsass/integration_test.go rename to resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go diff --git a/resources/resource_transformers/tocss/scss/integration_test.go b/resources/resource_transformers/tocss/scss/scss_integration_test.go similarity index 100% rename from resources/resource_transformers/tocss/scss/integration_test.go rename to resources/resource_transformers/tocss/scss/scss_integration_test.go diff --git a/resources/integration_test.go b/resources/resources_integration_test.go similarity index 100% rename from resources/integration_test.go rename to resources/resources_integration_test.go diff --git a/tpl/collections/integration_test.go b/tpl/collections/collections_integration_test.go similarity index 100% rename from tpl/collections/integration_test.go rename to tpl/collections/collections_integration_test.go diff --git a/tpl/debug/integration_test.go b/tpl/debug/debug_integration_test.go similarity index 100% rename from tpl/debug/integration_test.go rename to tpl/debug/debug_integration_test.go diff --git a/tpl/fmt/integration_test.go b/tpl/fmt/fmt_integration_test.go similarity index 100% rename from tpl/fmt/integration_test.go rename to tpl/fmt/fmt_integration_test.go diff --git a/tpl/images/integration_test.go b/tpl/images/images_integration_test.go similarity index 100% rename from tpl/images/integration_test.go rename to tpl/images/images_integration_test.go diff --git a/tpl/openapi/openapi3/integration_test.go b/tpl/openapi/openapi3/openapi3_integration_test.go similarity index 100% rename from tpl/openapi/openapi3/integration_test.go rename to tpl/openapi/openapi3/openapi3_integration_test.go diff --git a/tpl/os/integration_test.go b/tpl/os/os_integration_test.go similarity index 100% rename from tpl/os/integration_test.go rename to tpl/os/os_integration_test.go diff --git a/tpl/page/integration_test.go b/tpl/page/page_integration_test.go similarity index 100% rename from tpl/page/integration_test.go rename to tpl/page/page_integration_test.go diff --git a/tpl/partials/integration_test.go b/tpl/partials/partials_integration_test.go similarity index 100% rename from tpl/partials/integration_test.go rename to tpl/partials/partials_integration_test.go diff --git a/tpl/resources/integration_test.go b/tpl/resources/resources_integration_test.go similarity index 100% rename from tpl/resources/integration_test.go rename to tpl/resources/resources_integration_test.go diff --git a/tpl/templates/integration_test.go b/tpl/templates/templates_integration_test.go similarity index 100% rename from tpl/templates/integration_test.go rename to tpl/templates/templates_integration_test.go diff --git a/tpl/tplimpl/integration_test.go b/tpl/tplimpl/tplimpl_integration_test.go similarity index 100% rename from tpl/tplimpl/integration_test.go rename to tpl/tplimpl/tplimpl_integration_test.go diff --git a/tpl/transform/integration_test.go b/tpl/transform/transform_integration_test.go similarity index 100% rename from tpl/transform/integration_test.go rename to tpl/transform/transform_integration_test.go