@@ -357,6 +357,7 @@ func TestGenerateModule(t *testing.T) {
357357
358358// assert content module file in the docs
359359func assertModuleDocContent (t * testing.T , module context.TestcontainersModule , moduleDocFile string ) {
360+ t .Helper ()
360361content , err := os .ReadFile (moduleDocFile )
361362require .NoError (t , err )
362363
@@ -383,6 +384,7 @@ func assertModuleDocContent(t *testing.T, module context.TestcontainersModule, m
383384
384385// assert content module test
385386func assertExamplesTestContent (t * testing.T , module context.TestcontainersModule , examplesTestFile string ) {
387+ t .Helper ()
386388content , err := os .ReadFile (examplesTestFile )
387389require .NoError (t , err )
388390
@@ -402,6 +404,7 @@ func assertExamplesTestContent(t *testing.T, module context.TestcontainersModule
402404
403405// assert content module test
404406func assertModuleTestContent (t * testing.T , module context.TestcontainersModule , exampleTestFile string ) {
407+ t .Helper ()
405408content , err := os .ReadFile (exampleTestFile )
406409require .NoError (t , err )
407410
@@ -413,6 +416,7 @@ func assertModuleTestContent(t *testing.T, module context.TestcontainersModule,
413416
414417// assert content module
415418func assertModuleContent (t * testing.T , module context.TestcontainersModule , exampleFile string ) {
419+ t .Helper ()
416420content , err := os .ReadFile (exampleFile )
417421require .NoError (t , err )
418422
@@ -437,6 +441,7 @@ func assertModuleContent(t *testing.T, module context.TestcontainersModule, exam
437441
438442// assert content GitHub workflow for the module
439443func assertModuleGithubWorkflowContent (t * testing.T , moduleWorkflowFile string ) {
444+ t .Helper ()
440445content , err := os .ReadFile (moduleWorkflowFile )
441446require .NoError (t , err )
442447
@@ -454,6 +459,7 @@ func assertModuleGithubWorkflowContent(t *testing.T, moduleWorkflowFile string)
454459
455460// assert content go.mod
456461func assertGoModContent (t * testing.T , module context.TestcontainersModule , tcVersion string , goModFile string ) {
462+ t .Helper ()
457463content , err := os .ReadFile (goModFile )
458464require .NoError (t , err )
459465
@@ -465,6 +471,7 @@ func assertGoModContent(t *testing.T, module context.TestcontainersModule, tcVer
465471
466472// assert content Makefile
467473func assertMakefileContent (t * testing.T , module context.TestcontainersModule , makefile string ) {
474+ t .Helper ()
468475content , err := os .ReadFile (makefile )
469476require .NoError (t , err )
470477
@@ -474,6 +481,7 @@ func assertMakefileContent(t *testing.T, module context.TestcontainersModule, ma
474481
475482// assert content in the nav items from mkdocs.yml
476483func assertMkdocsNavItems (t * testing.T , module context.TestcontainersModule , originalConfig * mkdocs.Config , tmpCtx context.Context ) {
484+ t .Helper ()
477485config , err := mkdocs .ReadConfig (tmpCtx .MkdocsConfigFile ())
478486require .NoError (t , err )
479487
0 commit comments