From 187ce68d38f879ef720ca0746d7f7efd3a317e32 Mon Sep 17 00:00:00 2001 From: Dwayne Schultz Date: Sat, 2 Mar 2024 15:12:44 -0700 Subject: [PATCH] Fix generated code notice to comply with https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source (#115) * Fix generated code notice to comply with https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source * Include code only generated by tests --- ast/moq_loadfn_test.go | 2 +- ast/moq_readfilefn_test.go | 2 +- ast/moq_statfn_test.go | 2 +- bulk/internal/moq_createfn_test.go | 2 +- bulk/internal/moq_generatefn_test.go | 2 +- bulk/internal/moq_openfilefn_test.go | 2 +- bulk/internal/moq_openfn_test.go | 2 +- bulk/internal/moq_readcloser_test.go | 2 +- bulk/internal/moq_readwriteseekcloser_test.go | 2 +- bulk/internal/moq_writecloser_test.go | 2 +- demo/moq_isfavorite_test.go | 2 +- demo/moq_store_test.go | 2 +- demo/moq_writer_test.go | 2 +- generator/moq_converterer_test.go | 2 +- generator/moq_getwdfunc_test.go | 2 +- generator/moq_newconverterfunc_test.go | 2 +- generator/moq_testinterface_test.go | 2 +- generator/moq_typecache_test.go | 2 +- generator/moqgen.go | 2 +- generator/moqgen_test.go | 2 +- generator/testmoqs/exported/moq_exported_testmoqs.go | 2 +- generator/testmoqs/moq_t_test.go | 2 +- generator/testmoqs/moq_testmoqs_test.go | 2 +- metrics/moq_isloggingfn_test.go | 2 +- metrics/moq_loggingffn_test.go | 2 +- metrics/moq_metrics.go | 2 +- metrics/moq_reader_test.go | 2 +- pkg/internal/moq_generatewithtypecachefn_test.go | 2 +- pkg/internal/moq_typecache_test.go | 2 +- pkg/testmoqs/moq_generic_indexlistgentype.go | 2 +- pkg/testmoqs/moq_passbyrefsimple_stargentype.go | 2 +- pkg/testmoqs/moq_passbyvaluesimple_gentype.go | 2 +- pkg/testmoqs/moq_reduced.go | 2 +- pkg/testmoqs/moq_standalonefunc_gentype.go | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/ast/moq_loadfn_test.go b/ast/moq_loadfn_test.go index 0516cd7..966d5ea 100644 --- a/ast/moq_loadfn_test.go +++ b/ast/moq_loadfn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package ast_test diff --git a/ast/moq_readfilefn_test.go b/ast/moq_readfilefn_test.go index 97fe0f5..66b243b 100644 --- a/ast/moq_readfilefn_test.go +++ b/ast/moq_readfilefn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package ast_test diff --git a/ast/moq_statfn_test.go b/ast/moq_statfn_test.go index b8a07da..dc94d7d 100644 --- a/ast/moq_statfn_test.go +++ b/ast/moq_statfn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package ast_test diff --git a/bulk/internal/moq_createfn_test.go b/bulk/internal/moq_createfn_test.go index 2688883..5af457c 100644 --- a/bulk/internal/moq_createfn_test.go +++ b/bulk/internal/moq_createfn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_generatefn_test.go b/bulk/internal/moq_generatefn_test.go index 183dfcf..ae8cfe2 100644 --- a/bulk/internal/moq_generatefn_test.go +++ b/bulk/internal/moq_generatefn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_openfilefn_test.go b/bulk/internal/moq_openfilefn_test.go index a804808..cf0ad77 100644 --- a/bulk/internal/moq_openfilefn_test.go +++ b/bulk/internal/moq_openfilefn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_openfn_test.go b/bulk/internal/moq_openfn_test.go index 0c6c824..2ab934a 100644 --- a/bulk/internal/moq_openfn_test.go +++ b/bulk/internal/moq_openfn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_readcloser_test.go b/bulk/internal/moq_readcloser_test.go index eec6d57..d38b754 100644 --- a/bulk/internal/moq_readcloser_test.go +++ b/bulk/internal/moq_readcloser_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_readwriteseekcloser_test.go b/bulk/internal/moq_readwriteseekcloser_test.go index fd58d33..e23dcd3 100644 --- a/bulk/internal/moq_readwriteseekcloser_test.go +++ b/bulk/internal/moq_readwriteseekcloser_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/bulk/internal/moq_writecloser_test.go b/bulk/internal/moq_writecloser_test.go index 1571158..76a6e6a 100644 --- a/bulk/internal/moq_writecloser_test.go +++ b/bulk/internal/moq_writecloser_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/demo/moq_isfavorite_test.go b/demo/moq_isfavorite_test.go index 7f59602..f6cbd22 100644 --- a/demo/moq_isfavorite_test.go +++ b/demo/moq_isfavorite_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package demo_test diff --git a/demo/moq_store_test.go b/demo/moq_store_test.go index 99a5ec9..67d2bc8 100644 --- a/demo/moq_store_test.go +++ b/demo/moq_store_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package demo_test diff --git a/demo/moq_writer_test.go b/demo/moq_writer_test.go index 418e5a1..03e146a 100644 --- a/demo/moq_writer_test.go +++ b/demo/moq_writer_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package demo_test diff --git a/generator/moq_converterer_test.go b/generator/moq_converterer_test.go index 5360d2c..c191bd8 100644 --- a/generator/moq_converterer_test.go +++ b/generator/moq_converterer_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package generator_test diff --git a/generator/moq_getwdfunc_test.go b/generator/moq_getwdfunc_test.go index 0912095..60b57a4 100644 --- a/generator/moq_getwdfunc_test.go +++ b/generator/moq_getwdfunc_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package generator_test diff --git a/generator/moq_newconverterfunc_test.go b/generator/moq_newconverterfunc_test.go index e5d7b3d..3013481 100644 --- a/generator/moq_newconverterfunc_test.go +++ b/generator/moq_newconverterfunc_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package generator_test diff --git a/generator/moq_testinterface_test.go b/generator/moq_testinterface_test.go index af76776..eef2fac 100644 --- a/generator/moq_testinterface_test.go +++ b/generator/moq_testinterface_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package generator_test diff --git a/generator/moq_typecache_test.go b/generator/moq_typecache_test.go index 1f638d8..24852e6 100644 --- a/generator/moq_typecache_test.go +++ b/generator/moq_typecache_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package generator_test diff --git a/generator/moqgen.go b/generator/moqgen.go index fee831c..402a3fe 100644 --- a/generator/moqgen.go +++ b/generator/moqgen.go @@ -16,7 +16,7 @@ import ( ) const ( - headerComment = "// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT!" + headerComment = "// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT." testPkgSuffix = "_test" ) diff --git a/generator/moqgen_test.go b/generator/moqgen_test.go index 82fb8be..50981e0 100644 --- a/generator/moqgen_test.go +++ b/generator/moqgen_test.go @@ -175,7 +175,7 @@ func TestMoqGenerator(t *testing.T) { if len(resp.File.Decs.Start) < 1 { t.Errorf("got %d, wanted > 0 len start", len(resp.File.Decs.Start)) } - expectedStart := "// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT!" + expectedStart := "// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT." if resp.File.Decs.Start[0] != expectedStart { t.Errorf("got %s, wanted %s", resp.File.Decs.Start[0], expectedStart) } diff --git a/generator/testmoqs/exported/moq_exported_testmoqs.go b/generator/testmoqs/exported/moq_exported_testmoqs.go index 081a294..1b66a55 100644 --- a/generator/testmoqs/exported/moq_exported_testmoqs.go +++ b/generator/testmoqs/exported/moq_exported_testmoqs.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package exported diff --git a/generator/testmoqs/moq_t_test.go b/generator/testmoqs/moq_t_test.go index 18437ef..8cc9359 100644 --- a/generator/testmoqs/moq_t_test.go +++ b/generator/testmoqs/moq_t_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs_test diff --git a/generator/testmoqs/moq_testmoqs_test.go b/generator/testmoqs/moq_testmoqs_test.go index 5f32092..6a07610 100644 --- a/generator/testmoqs/moq_testmoqs_test.go +++ b/generator/testmoqs/moq_testmoqs_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs_test diff --git a/metrics/moq_isloggingfn_test.go b/metrics/moq_isloggingfn_test.go index 82a5c39..57f1681 100644 --- a/metrics/moq_isloggingfn_test.go +++ b/metrics/moq_isloggingfn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package metrics_test diff --git a/metrics/moq_loggingffn_test.go b/metrics/moq_loggingffn_test.go index e3022ba..55dd9e8 100644 --- a/metrics/moq_loggingffn_test.go +++ b/metrics/moq_loggingffn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package metrics_test diff --git a/metrics/moq_metrics.go b/metrics/moq_metrics.go index 0912a87..0e0801f 100644 --- a/metrics/moq_metrics.go +++ b/metrics/moq_metrics.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package metrics diff --git a/metrics/moq_reader_test.go b/metrics/moq_reader_test.go index 2b1a719..0bf4c8c 100644 --- a/metrics/moq_reader_test.go +++ b/metrics/moq_reader_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package metrics_test diff --git a/pkg/internal/moq_generatewithtypecachefn_test.go b/pkg/internal/moq_generatewithtypecachefn_test.go index 0da67d3..8a25974 100644 --- a/pkg/internal/moq_generatewithtypecachefn_test.go +++ b/pkg/internal/moq_generatewithtypecachefn_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/pkg/internal/moq_typecache_test.go b/pkg/internal/moq_typecache_test.go index 5eb79fd..3a77acb 100644 --- a/pkg/internal/moq_typecache_test.go +++ b/pkg/internal/moq_typecache_test.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package internal_test diff --git a/pkg/testmoqs/moq_generic_indexlistgentype.go b/pkg/testmoqs/moq_generic_indexlistgentype.go index c55f4d8..7fc1b10 100644 --- a/pkg/testmoqs/moq_generic_indexlistgentype.go +++ b/pkg/testmoqs/moq_generic_indexlistgentype.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs diff --git a/pkg/testmoqs/moq_passbyrefsimple_stargentype.go b/pkg/testmoqs/moq_passbyrefsimple_stargentype.go index 67e7591..3e84558 100644 --- a/pkg/testmoqs/moq_passbyrefsimple_stargentype.go +++ b/pkg/testmoqs/moq_passbyrefsimple_stargentype.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs diff --git a/pkg/testmoqs/moq_passbyvaluesimple_gentype.go b/pkg/testmoqs/moq_passbyvaluesimple_gentype.go index 482a8d0..a9eae58 100644 --- a/pkg/testmoqs/moq_passbyvaluesimple_gentype.go +++ b/pkg/testmoqs/moq_passbyvaluesimple_gentype.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs diff --git a/pkg/testmoqs/moq_reduced.go b/pkg/testmoqs/moq_reduced.go index 13f5b88..f5e22c2 100644 --- a/pkg/testmoqs/moq_reduced.go +++ b/pkg/testmoqs/moq_reduced.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs diff --git a/pkg/testmoqs/moq_standalonefunc_gentype.go b/pkg/testmoqs/moq_standalonefunc_gentype.go index 41bea8b..1b657c2 100644 --- a/pkg/testmoqs/moq_standalonefunc_gentype.go +++ b/pkg/testmoqs/moq_standalonefunc_gentype.go @@ -1,4 +1,4 @@ -// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT! +// Code generated by Moqueries - https://moqueries.org - DO NOT EDIT. package testmoqs