Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: examples --> Testable Examples #761

Merged
merged 2 commits into from
May 6, 2024
Merged

Conversation

sprive
Copy link
Contributor

@sprive sprive commented May 6, 2024

I wanted to distinguish Go's "Testable Examples" as something more than "examples".

./build.sh ran OK:

$ ./build.sh
go: downloading github.com/client9/misspell v0.3.4
go: downloading github.com/po3rin/gofmtmd v0.1.3
go: downloading github.com/spf13/cobra v0.0.5
go: downloading gopkg.in/russross/blackfriday.v2 v2.0.0
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: downloading github.com/spf13/pflag v1.0.3
formatting  file: ./LICENSE.md
formatting  file: ./README.md
formatting  file: ./SUMMARY.md
formatting  file: ./anti-patterns.md
formatting  file: ./app-intro.md
formatting  file: ./arrays-and-slices.md
formatting  file: ./command-line.md
formatting  file: ./concurrency.md
formatting  file: ./context-aware-reader.md
formatting  file: ./context.md
formatting  file: ./contributing.md
formatting  file: ./dependency-injection.md
formatting  file: ./error-types.md
formatting  file: ./gb-readme.md
formatting  file: ./generics.md
formatting  file: ./hello-world.md
formatting  file: ./html-templates.md
formatting  file: ./http-handlers-revisited.md
formatting  file: ./http-server.md
formatting  file: ./install-go.md
formatting  file: ./integers.md
formatting  file: ./intro-to-acceptance-tests.md
formatting  file: ./io.md
formatting  file: ./iteration.md
formatting  file: ./json.md
formatting  file: ./maps.md
formatting  file: ./math.md
formatting  file: ./mocking.md
formatting  file: ./os-exec.md
formatting  file: ./pdf-cover.md
formatting  file: ./pointers-and-errors.md
formatting  file: ./reading-files.md
formatting  file: ./refactoring-checklist.md
formatting  file: ./reflection.md
formatting  file: ./revisiting-arrays-and-slices-with-generics.md
formatting  file: ./roman-numerals.md
formatting  file: ./scaling-acceptance-tests.md
formatting  file: ./select.md
formatting  file: ./structs-methods-and-interfaces.md
formatting  file: ./sync.md
formatting  file: ./template.md
formatting  file: ./time.md
formatting  file: ./websockets.md
formatting  file: ./why.md
formatting  file: ./working-without-mocks.md
ok      github.com/quii/learn-go-with-tests/arrays/v1   0.156s
ok      github.com/quii/learn-go-with-tests/arrays/v2   0.300s
ok      github.com/quii/learn-go-with-tests/arrays/v3   0.783s
ok      github.com/quii/learn-go-with-tests/arrays/v4   0.613s
ok      github.com/quii/learn-go-with-tests/arrays/v5   0.455s
ok      github.com/quii/learn-go-with-tests/arrays/v6   0.920s
ok      github.com/quii/learn-go-with-tests/arrays/v7   0.846s
ok      github.com/quii/learn-go-with-tests/arrays/v8   0.930s
ok      github.com/quii/learn-go-with-tests/blogrenderer        0.440s
?       github.com/quii/learn-go-with-tests/command-line/v1/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/command-line/v1/cmd/webserver       [no test files]
?       github.com/quii/learn-go-with-tests/command-line/v2/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/command-line/v2/cmd/webserver       [no test files]
?       github.com/quii/learn-go-with-tests/command-line/v3/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/command-line/v3/cmd/webserver       [no test files]
ok      github.com/quii/learn-go-with-tests/command-line/v1     0.227s
ok      github.com/quii/learn-go-with-tests/command-line/v2     0.345s
ok      github.com/quii/learn-go-with-tests/command-line/v3     0.452s
ok      github.com/quii/learn-go-with-tests/concurrency/v1      0.646s
?       github.com/quii/learn-go-with-tests/hello-world/v1      [no test files]
ok      github.com/quii/learn-go-with-tests/concurrency/v2      2.539s
ok      github.com/quii/learn-go-with-tests/concurrency/v3      0.811s
ok      github.com/quii/learn-go-with-tests/context/v1  0.892s
ok      github.com/quii/learn-go-with-tests/context/v2  0.918s
ok      github.com/quii/learn-go-with-tests/context/v3  1.014s
ok      github.com/quii/learn-go-with-tests/di/v1       0.900s
ok      github.com/quii/learn-go-with-tests/di/v2       0.594s
ok      github.com/quii/learn-go-with-tests/for/v1      0.686s
ok      github.com/quii/learn-go-with-tests/for/v2      0.531s
ok      github.com/quii/learn-go-with-tests/for/vx      0.489s
ok      github.com/quii/learn-go-with-tests/generics    0.612s
ok      github.com/quii/learn-go-with-tests/hello-world/v2      0.524s
ok      github.com/quii/learn-go-with-tests/hello-world/v3      0.565s
ok      github.com/quii/learn-go-with-tests/hello-world/v4      0.647s
ok      github.com/quii/learn-go-with-tests/hello-world/v5      0.635s
ok      github.com/quii/learn-go-with-tests/hello-world/v6      0.640s
ok      github.com/quii/learn-go-with-tests/hello-world/v7      0.764s
ok      github.com/quii/learn-go-with-tests/hello-world/v8      0.871s
ok      github.com/quii/learn-go-with-tests/http-server/v1      0.882s
ok      github.com/quii/learn-go-with-tests/http-server/v2      0.793s
ok      github.com/quii/learn-go-with-tests/http-server/v3      0.723s
ok      github.com/quii/learn-go-with-tests/http-server/v4      0.806s
ok      github.com/quii/learn-go-with-tests/http-server/v5      0.787s
ok      github.com/quii/learn-go-with-tests/integers/v1 0.845s
ok      github.com/quii/learn-go-with-tests/integers/v2 0.762s
ok      github.com/quii/learn-go-with-tests/io/v1       0.725s
ok      github.com/quii/learn-go-with-tests/io/v2       0.733s
ok      github.com/quii/learn-go-with-tests/io/v3       0.724s
ok      github.com/quii/learn-go-with-tests/io/v4       0.706s
ok      github.com/quii/learn-go-with-tests/io/v5       0.731s
ok      github.com/quii/learn-go-with-tests/io/v6       0.742s
ok      github.com/quii/learn-go-with-tests/io/v7       0.743s
ok      github.com/quii/learn-go-with-tests/io/v8       0.763s
ok      github.com/quii/learn-go-with-tests/io/v9       0.763s
ok      github.com/quii/learn-go-with-tests/json/v1     0.799s
ok      github.com/quii/learn-go-with-tests/json/v2     0.765s
ok      github.com/quii/learn-go-with-tests/json/v3     0.714s
ok      github.com/quii/learn-go-with-tests/json/v4     0.785s
ok      github.com/quii/learn-go-with-tests/json/v5     0.760s
ok      github.com/quii/learn-go-with-tests/json/v6     0.737s
ok      github.com/quii/learn-go-with-tests/maps/v1     0.857s
ok      github.com/quii/learn-go-with-tests/maps/v2     0.855s
ok      github.com/quii/learn-go-with-tests/maps/v3     0.816s
ok      github.com/quii/learn-go-with-tests/maps/v4     0.771s
?       github.com/quii/learn-go-with-tests/math/v10/clockface/clockface        [no test files]
ok      github.com/quii/learn-go-with-tests/maps/v5     0.740s
?       github.com/quii/learn-go-with-tests/math/v11/clockface/clockface        [no test files]
ok      github.com/quii/learn-go-with-tests/maps/v6     0.742s
ok      github.com/quii/learn-go-with-tests/maps/v7     0.764s
?       github.com/quii/learn-go-with-tests/math/v12/clockface/clockface        [no test files]
ok      github.com/quii/learn-go-with-tests/math/v1/clockface   0.784s
ok      github.com/quii/learn-go-with-tests/math/v10/clockface  0.731s
ok      github.com/quii/learn-go-with-tests/math/v11/clockface  0.698s
ok      github.com/quii/learn-go-with-tests/math/v12/clockface  0.557s
?       github.com/quii/learn-go-with-tests/math/v6/clockface/clockface [no test files]
ok      github.com/quii/learn-go-with-tests/math/v2/clockface   0.693s
?       github.com/quii/learn-go-with-tests/math/v7/clockface/clockface [no test files]
ok      github.com/quii/learn-go-with-tests/math/v3/clockface   0.730s
ok      github.com/quii/learn-go-with-tests/math/v4/clockface   0.828s
?       github.com/quii/learn-go-with-tests/math/v7b/clockface/clockface        [no test files]
ok      github.com/quii/learn-go-with-tests/math/v5/clockface   0.804s
?       github.com/quii/learn-go-with-tests/math/v7c/clockface/clockface        [no test files]
ok      github.com/quii/learn-go-with-tests/math/v6/clockface   0.787s
?       github.com/quii/learn-go-with-tests/math/v8/clockface/clockface [no test files]
ok      github.com/quii/learn-go-with-tests/math/v7/clockface   0.632s
?       github.com/quii/learn-go-with-tests/math/v9/clockface/clockface [no test files]
ok      github.com/quii/learn-go-with-tests/math/v7b/clockface  0.608s
?       github.com/quii/learn-go-with-tests/math/vFinal/clockface/clockface     [no test files]
ok      github.com/quii/learn-go-with-tests/math/v7c/clockface  0.604s
ok      github.com/quii/learn-go-with-tests/math/v8/clockface   0.572s
ok      github.com/quii/learn-go-with-tests/math/v9/clockface   0.600s
ok      github.com/quii/learn-go-with-tests/math/vFinal/clockface       0.600s
ok      github.com/quii/learn-go-with-tests/math/vFinal/clockface/svg   0.568s
ok      github.com/quii/learn-go-with-tests/mocking/v1  0.686s
ok      github.com/quii/learn-go-with-tests/mocking/v2  0.716s
ok      github.com/quii/learn-go-with-tests/mocking/v3  0.719s
ok      github.com/quii/learn-go-with-tests/mocking/v4  0.724s
ok      github.com/quii/learn-go-with-tests/mocking/v5  0.740s
ok      github.com/quii/learn-go-with-tests/pointers/v1 0.754s
ok      github.com/quii/learn-go-with-tests/pointers/v2 0.761s
ok      github.com/quii/learn-go-with-tests/pointers/v3 0.760s
ok      github.com/quii/learn-go-with-tests/pointers/v4 0.767s
ok      github.com/quii/learn-go-with-tests/q-and-a/context-aware-reader        0.767s
ok      github.com/quii/learn-go-with-tests/q-and-a/error-types 0.616s
ok      github.com/quii/learn-go-with-tests/q-and-a/error-types/v2      0.719s
ok      github.com/quii/learn-go-with-tests/q-and-a/http-handlers-revisited     0.761s
ok      github.com/quii/learn-go-with-tests/q-and-a/os-exec     0.873s
ok      github.com/quii/learn-go-with-tests/reading-files       0.700s
ok      github.com/quii/learn-go-with-tests/reflection/v1       0.806s
ok      github.com/quii/learn-go-with-tests/reflection/v10      0.802s
ok      github.com/quii/learn-go-with-tests/reflection/v2       0.758s
ok      github.com/quii/learn-go-with-tests/reflection/v3       0.730s
ok      github.com/quii/learn-go-with-tests/reflection/v4       0.720s
ok      github.com/quii/learn-go-with-tests/reflection/v5       0.731s
ok      github.com/quii/learn-go-with-tests/reflection/v6       0.739s
ok      github.com/quii/learn-go-with-tests/reflection/v7       0.746s
ok      github.com/quii/learn-go-with-tests/reflection/v8       0.764s
ok      github.com/quii/learn-go-with-tests/reflection/v9       0.766s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v1   0.762s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v10  0.743s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v11  0.695s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v2   0.708s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v3   0.722s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v4   0.728s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v5   0.726s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v6   0.735s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v7   0.734s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v8   0.747s
ok      github.com/quii/learn-go-with-tests/roman-numerals/v9   0.740s
ok      github.com/quii/learn-go-with-tests/select/v1   0.702s
ok      github.com/quii/learn-go-with-tests/select/v2   0.724s
ok      github.com/quii/learn-go-with-tests/select/v3   0.793s
ok      github.com/quii/learn-go-with-tests/structs/v1  0.886s
ok      github.com/quii/learn-go-with-tests/structs/v2  0.896s
ok      github.com/quii/learn-go-with-tests/structs/v3  0.904s
ok      github.com/quii/learn-go-with-tests/structs/v4  0.833s
ok      github.com/quii/learn-go-with-tests/structs/v5  0.762s
ok      github.com/quii/learn-go-with-tests/structs/v6  0.684s
ok      github.com/quii/learn-go-with-tests/structs/v7  0.737s
?       github.com/quii/learn-go-with-tests/time/v1/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/time/v1/cmd/webserver       [no test files]
ok      github.com/quii/learn-go-with-tests/structs/v8  0.729s
ok      github.com/quii/learn-go-with-tests/sync/v1     0.738s
ok      github.com/quii/learn-go-with-tests/sync/v2     0.766s
?       github.com/quii/learn-go-with-tests/time/v2/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/time/v2/cmd/webserver       [no test files]
ok      github.com/quii/learn-go-with-tests/time/v1     0.642s
?       github.com/quii/learn-go-with-tests/time/v3/cmd/cli     [no test files]
?       github.com/quii/learn-go-with-tests/time/v3/cmd/webserver       [no test files]
ok      github.com/quii/learn-go-with-tests/time/v2     0.415s
ok      github.com/quii/learn-go-with-tests/time/v3     0.333s
ok      github.com/quii/learn-go-with-tests/todo        0.501s
?       github.com/quii/learn-go-with-tests/websockets/v1/cmd/cli       [no test files]
?       github.com/quii/learn-go-with-tests/websockets/v1/cmd/webserver [no test files]
?       github.com/quii/learn-go-with-tests/websockets/v2/cmd/cli       [no test files]
?       github.com/quii/learn-go-with-tests/websockets/v2/cmd/webserver [no test files]
ok      github.com/quii/learn-go-with-tests/websockets/v1       0.281s
ok      github.com/quii/learn-go-with-tests/websockets/v2       0.532s

@quii
Copy link
Owner

quii commented May 6, 2024

Nice change 👍

@quii quii merged commit 1c55629 into quii:main May 6, 2024
1 check passed
@sprive sprive deleted the testable_examples branch May 11, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants