Skip to content

Commit

Permalink
Fix generated code notice to comply with https://pkg.go.dev/cmd/go#hd…
Browse files Browse the repository at this point in the history
…r-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
  • Loading branch information
myshkin5 authored Mar 2, 2024
1 parent 93f5eab commit 187ce68
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion ast/moq_loadfn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ast/moq_readfilefn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ast/moq_statfn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_createfn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_generatefn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_openfilefn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_openfn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_readcloser_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_readwriteseekcloser_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bulk/internal/moq_writecloser_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/moq_isfavorite_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/moq_store_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/moq_writer_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moq_converterer_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moq_getwdfunc_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moq_newconverterfunc_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moq_testinterface_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moq_typecache_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/moqgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion generator/moqgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generator/testmoqs/exported/moq_exported_testmoqs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/testmoqs/moq_t_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/testmoqs/moq_testmoqs_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion metrics/moq_isloggingfn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion metrics/moq_loggingffn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion metrics/moq_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion metrics/moq_reader_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/internal/moq_generatewithtypecachefn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/internal/moq_typecache_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/testmoqs/moq_generic_indexlistgentype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/testmoqs/moq_passbyrefsimple_stargentype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/testmoqs/moq_passbyvaluesimple_gentype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/testmoqs/moq_reduced.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/testmoqs/moq_standalonefunc_gentype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 187ce68

Please sign in to comment.