MCPcopy Create free account

hub / github.com/corsc/Beyond-Effective-Go / functions

Functions1,301 in github.com/corsc/Beyond-Effective-Go

FunctionTestImproved
(t *testing.T)
Chapter06/07_patterns_tricks/02_tests_with_context/example_test.go:17
FunctionTestInternetIsAccessible
(t *testing.T)
Chapter02/05_patterns/05_fastest_responder/fastest_responder_test.go:9
FunctionTestLoadAll
(t *testing.T)
Chapter02/01_go_routines/02_unpredictable/02_with_sync/with_sync_test.go:7
FunctionTestLoadAll
(t *testing.T)
Chapter02/01_go_routines/02_unpredictable/03_without_goroutine/without_goroutine_test.go:7
FunctionTestLoadAll
(t *testing.T)
Chapter02/01_go_routines/02_unpredictable/01_without_sync/without_sync_test.go:10
FunctionTestLoadConfig
(t *testing.T)
Chapter06/07_patterns_tricks/03_test_data/example_test.go:13
FunctionTestLoadGenerator
(t *testing.T)
Chapter03/03_pprof/02_memory_profiling/01_cards/main_test.go:14
FunctionTestLoadGenerator
(t *testing.T)
Chapter03/03_pprof/01_cpu_profiling/01_cards/main_test.go:14
FunctionTestManager_Add
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:78
FunctionTestManager_Add
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:130
FunctionTestManager_Add
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:130
FunctionTestManager_Add
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:143
FunctionTestManager_Add
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:192
FunctionTestManager_AddMember
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:246
FunctionTestManager_Get
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:16
FunctionTestManager_Get
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:16
FunctionTestManager_Get
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:16
FunctionTestManager_Get
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:16
FunctionTestManager_GetByEmail
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:16
FunctionTestManager_GetByName
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:73
FunctionTestManager_GetByName
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:73
FunctionTestManager_GetByName
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:84
FunctionTestManager_GetByName
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:73
FunctionTestManager_GetMembers
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:130
FunctionTestManager_Parse
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager_test.go:13
FunctionTestManager_Update
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:193
FunctionTestManager_Update
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:206
FunctionTestMapInt
(t *testing.T)
Chapter03/05_patterns/10_maps/example_gc_test.go:52
FunctionTestMapPerson
(t *testing.T)
Chapter03/05_patterns/10_maps/example_gc_test.go:78
FunctionTestMapPointer
(t *testing.T)
Chapter03/05_patterns/10_maps/example_gc_test.go:91
FunctionTestMapString
(t *testing.T)
Chapter03/05_patterns/10_maps/example_gc_test.go:65
FunctionTestMultiplexingExample
(t *testing.T)
Chapter01/02_concurrency_model/02_select_data_flow/multiplexing_test.go:10
FunctionTestMyObject_implements
(t *testing.T)
Chapter06/07_patterns_tricks/09_assert_interface/example_test.go:11
FunctionTestNewDocument
(t *testing.T)
Chapter04/02_design_patterns/02_factory_method/02_example/example_test.go:9
FunctionTestNewPartitionedMap_basics
(t *testing.T)
Chapter01/04_data_races/02_partitioned_map/partitioned_map_test.go:9
FunctionTestObserverPattern
(t *testing.T)
Chapter04/02_design_patterns/03_observer/example_test.go:10
FunctionTestOrderManager
(t *testing.T)
Chapter06/07_patterns_tricks/04_private_constructors/02_internal_init/example_test.go:10
FunctionTestOrderManager_Process
(t *testing.T)
Chapter06/02_table_driven_tests/example_test.go:14
FunctionTestOrderManager_Process
(t *testing.T)
Chapter06/04_mocks_stubs_recorders/01_mocks/example_test.go:14
FunctionTestOrderManager_Process
(t *testing.T)
Chapter06/05_test_ux/01_predictability/example_test.go:12
FunctionTestOrderManager_Process
(t *testing.T)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example_test.go:14
FunctionTestOrderManager_Process_happyPath
(t *testing.T)
Chapter06/01_what_when_why_how/04_what/example_test.go:10
FunctionTestOrderManager_Process_sadPath_nameValidation
(t *testing.T)
Chapter06/01_what_when_why_how/04_what/example_test.go:26
FunctionTestOrderManager_Process_sadPath_nameValidationImproved
(t *testing.T)
Chapter06/01_what_when_why_how/04_what/example_test.go:41
FunctionTestOrderManager_Process_sadPath_shippingAddressValidation
(t *testing.T)
Chapter06/01_what_when_why_how/04_what/example_test.go:57
FunctionTestPrinterAPI_Print
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/printer/printer_test.go:11
FunctionTestPrinter_outputHeader
(t *testing.T)
Chapter09/01_api_integrations/01_example/03_output/printing_test.go:10
FunctionTestPrinter_outputLine
(t *testing.T)
Chapter09/01_api_integrations/01_example/03_output/printing_test.go:24
FunctionTestReadFromNilChannel
(t *testing.T)
Chapter02/03_select/02_read_from_nil/01_read_from_nil_channel_test.go:9
FunctionTestReverse
(t *testing.T)
Chapter08/01_functional_programming/03_recursion/example_test.go:21
FunctionTestScheduleAPI_GetSchedule
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule_test.go:10
FunctionTestSearch_Do
(t *testing.T)
Chapter06/07_patterns_tricks/05_fluent_api/02_second_iteration/example_test.go:14
FunctionTestServer
(t *testing.T)
Chapter06/07_patterns_tricks/07_tests_complete/04_give_ups/example_test.go:10
FunctionTestServerImproved
(t *testing.T)
Chapter06/07_patterns_tricks/07_tests_complete/04_give_ups/example_test.go:24
FunctionTestServer_Shutdown
(t *testing.T)
Chapter06/07_patterns_tricks/06_concurrent_code/02_switch_outputs/example_test.go:10
FunctionTestShortExample
(t *testing.T)
Chapter06/07_patterns_tricks/01_go_test_flags/02_short/example_test.go:7
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser_test.go:10
FunctionTestSimpleParser
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast_test.go:11
FunctionTestSimpleTemplate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/02_template_example/example_test.go:10
FunctionTestSingleton
(t *testing.T)
Chapter04/02_design_patterns/01_singleton/01_simple/example_test.go:8
FunctionTestSkipWithEnvVar
(t *testing.T)
Chapter06/07_patterns_tricks/11_skipping_tests/02_env_var_test.go:8
FunctionTestSkipWithHelper
(t *testing.T)
Chapter06/07_patterns_tricks/11_skipping_tests/03_check_for_resource_test.go:8
FunctionTestSkipWithInit
(t *testing.T)
Chapter06/07_patterns_tricks/11_skipping_tests/01_skip_with_init_test.go:10
FunctionTestStringCollection
(t *testing.T)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/02_loop_map/example_test.go:34
FunctionTestStringCollection
(t *testing.T)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/01_double_loop/example_test.go:33
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/generator_test.go:10
FunctionTestStubGenerator_Generate
(t *testing.T)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/generator_test.go:10
FunctionTestSwapAPI_FindSwap
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/swap_test.go:61
FunctionTestTemplate
(t *testing.T)
Chapter08/04_struct_tricks/02_anonymous/02_template/example_test.go:12
FunctionTestTempting
(t *testing.T)
Chapter06/07_patterns_tricks/02_tests_with_context/example_test.go:11
FunctionTestTestExample
(t *testing.T)
Chapter05/02_consistency/01_style/01_test.go:10
FunctionTestThreadSafeSlice
(t *testing.T)
Chapter01/05_sync_atomic/03_compare_and_swap/thread_safe_slice_test.go:11
FunctionTestToUpper
(t *testing.T)
Chapter08/01_functional_programming/02_higher_order/example_test.go:9
FunctionTestToUpper
(t *testing.T)
Chapter08/01_functional_programming/03_recursion/example_test.go:9
FunctionTestTypicalImplementation
(t *testing.T)
Chapter06/06_test_resilience/example_test.go:10
FunctionTestTypicalMistake
(t *testing.T)
Chapter06/07_patterns_tricks/06_concurrent_code/01_typical_mistake/example.go:10
FunctionTestUsePooledAccount
(t *testing.T)
Chapter01/06_sync/05_pool/dirty_test.go:9
FunctionTestUsePooledAccountFixed
(t *testing.T)
Chapter01/06_sync/05_pool/fixed_test.go:9
FunctionTestUserAPI_GetUsers
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_user_test.go:9
FunctionTestUserAPI_GetUsers
(t *testing.T)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users_test.go:10
FunctionTestUserAsJSON
(t *testing.T)
Chapter06/08_test_induced_damage/04_test_coverage/example_test.go:10
FunctionTestUsersAPI_GetUsers
(t *testing.T)
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty_test.go:14
FunctionTestUsingRedis
(t *testing.T)
Chapter06/05_test_ux/03_reduce_duplication/01_dependencies/example_test.go:12
FunctionTestVanillaGo
(t *testing.T)
Chapter06/05_test_ux/02_readability/01_assertions/example_test.go:10
FunctionTestWorkerGroup
(t *testing.T)
Chapter02/05_patterns/03_reply_channel/03_reply_channel_test.go:10
FunctionTimeRemaining
(when time.Time)
Chapter08/01_functional_programming/01_idempotent/01_non_idempotent/example.go:7
FunctionTimeRemaining
(when, now time.Time)
Chapter08/01_functional_programming/01_idempotent/02_idempotent/example.go:7
← previousnext →1,101–1,200 of 1,301, ranked by callers