Commit 7b6c114
authored
lint: Enable paralleltest, fix issues (#1367)
Enable the paralleltest linter.
This linter checks that all tests and subtests call t.Parallel.
Fix all fixable issues reported by the linter.
For cases where a test cannot be run in parallel,
add a `//nolint:paralleltest` comment with an appropriate explanation.
For example:
//nolint:paralleltest // modifies global state
Best reviewed by ignoring all whitespace changes.
<details>
<summary>Full list fixed issues</summary>
```
array_test.go:55:1: Function TestArrayWrappers missing the call to method parallel (paralleltest)
buffer/buffer_test.go:32:1: Function TestBufferWrites missing the call to method parallel (paralleltest)
buffer/buffer_test.go:55:2: Range statement for test TestBufferWrites missing the call to method parallel in test Run (paralleltest)
buffer/pool_test.go:30:1: Function TestBuffers missing the call to method parallel (paralleltest)
clock_test.go:39:1: Function TestWithClock missing the call to method parallel (paralleltest)
config_test.go:34:1: Function TestConfig missing the call to method parallel (paralleltest)
config_test.go:59:2: Range statement for test TestConfig missing the call to method parallel in test Run (paralleltest)
config_test.go:88:1: Function TestConfigWithInvalidPaths missing the call to method parallel (paralleltest)
config_test.go:99:2: Range statement for test TestConfigWithInvalidPaths missing the call to method parallel in test Run (paralleltest)
config_test.go:110:1: Function TestConfigWithMissingAttributes missing the call to method parallel (paralleltest)
config_test.go:137:2: Range statement for test TestConfigWithMissingAttributes missing the call to method parallel in test Run (paralleltest)
config_test.go:161:1: Function TestConfigWithSamplingHook missing the call to method parallel (paralleltest)
encoder_test.go:31:1: Function TestRegisterDefaultEncoders missing the call to method parallel (paralleltest)
encoder_test.go:35:1: Function TestRegisterEncoder missing the call to method parallel (paralleltest)
encoder_test.go:42:1: Function TestDuplicateRegisterEncoder missing the call to method parallel (paralleltest)
encoder_test.go:49:1: Function TestRegisterEncoderNoName missing the call to method parallel (paralleltest)
encoder_test.go:53:1: Function TestNewEncoder missing the call to method parallel (paralleltest)
encoder_test.go:62:1: Function TestNewEncoderNotRegistered missing the call to method parallel (paralleltest)
encoder_test.go:67:1: Function TestNewEncoderNoName missing the call to method parallel (paralleltest)
error_test.go:34:1: Function TestErrorConstructors missing the call to method parallel (paralleltest)
error_test.go:58:1: Function TestErrorArrayConstructor missing the call to method parallel (paralleltest)
error_test.go:81:1: Function TestErrorsArraysHandleRichErrors missing the call to method parallel (paralleltest)
field_test.go:63:1: Function TestFieldConstructors missing the call to method parallel (paralleltest)
field_test.go:258:2: Range statement for test TestFieldConstructors missing the call to method parallel in test Run (paralleltest)
field_test.go:268:1: Function TestStackField missing the call to method parallel (paralleltest)
field_test.go:277:1: Function TestStackSkipField missing the call to method parallel (paralleltest)
field_test.go:286:1: Function TestStackSkipFieldWithSkip missing the call to method parallel (paralleltest)
field_test.go:294:1: Function TestDict missing the call to method parallel (paralleltest)
field_test.go:305:2: Range statement for test TestDict missing the call to method parallel in test Run (paralleltest)
flag_test.go:68:1: Function TestLevelFlag missing the call to method parallel (paralleltest)
flag_test.go:90:1: Function TestLevelFlagsAreIndependent missing the call to method parallel (paralleltest)
global_test.go:40:1: Function TestReplaceGlobals missing the call to method parallel (paralleltest)
global_test.go:69:1: Function TestGlobalsConcurrentUse missing the call to method parallel (paralleltest)
global_test.go:100:1: Function TestNewStdLog missing the call to method parallel (paralleltest)
global_test.go:108:1: Function TestNewStdLogAt missing the call to method parallel (paralleltest)
global_test.go:121:1: Function TestNewStdLogAtPanics missing the call to method parallel (paralleltest)
global_test.go:134:1: Function TestNewStdLogAtFatal missing the call to method parallel (paralleltest)
global_test.go:147:1: Function TestNewStdLogAtInvalid missing the call to method parallel (paralleltest)
global_test.go:152:1: Function TestRedirectStdLog missing the call to method parallel (paralleltest)
global_test.go:170:1: Function TestRedirectStdLogCaller missing the call to method parallel (paralleltest)
global_test.go:180:1: Function TestRedirectStdLogAt missing the call to method parallel (paralleltest)
global_test.go:204:1: Function TestRedirectStdLogAtCaller missing the call to method parallel (paralleltest)
global_test.go:220:1: Function TestRedirectStdLogAtPanics missing the call to method parallel (paralleltest)
global_test.go:240:1: Function TestRedirectStdLogAtFatal missing the call to method parallel (paralleltest)
global_test.go:260:1: Function TestRedirectStdLogAtInvalid missing the call to method parallel (paralleltest)
http_handler_test.go:38:1: Function TestAtomicLevelServeHTTP missing the call to method parallel (paralleltest)
http_handler_test.go:155:2: Range statement for test TestAtomicLevelServeHTTP missing the call to method parallel in test Run (paralleltest)
increase_level_test.go:42:1: Function TestIncreaseLevelTryDecrease missing the call to method parallel (paralleltest)
increase_level_test.go:68:1: Function TestIncreaseLevel missing the call to method parallel (paralleltest)
internal/color/color_test.go:29:1: Function TestColorFormatting missing the call to method parallel (paralleltest)
internal/exit/exit_test.go:30:1: Function TestStub missing the call to method parallel (paralleltest)
internal/pool/pool_test.go:36:1: Function TestNew missing the call to method parallel (paralleltest)
internal/pool/pool_test.go:78:1: Function TestNew_Race missing the call to method parallel (paralleltest)
internal/stacktrace/stack_test.go:32:1: Function TestTake missing the call to method parallel (paralleltest)
internal/stacktrace/stack_test.go:44:1: Function TestTakeWithSkip missing the call to method parallel (paralleltest)
internal/stacktrace/stack_test.go:56:1: Function TestTakeWithSkipInnerFunc missing the call to method parallel (paralleltest)
internal/stacktrace/stack_test.go:71:1: Function TestTakeDeepStack missing the call to method parallel (paralleltest)
internal/ztest/clock_test.go:31:1: Function TestMockClock_NewTicker missing the call to method parallel (paralleltest)
internal/ztest/clock_test.go:59:1: Function TestMockClock_NewTicker_slowConsumer missing the call to method parallel (paralleltest)
internal/ztest/clock_test.go:77:1: Function TestMockClock_Add_negative missing the call to method parallel (paralleltest)
level_test.go:33:1: Function TestLevelEnablerFunc missing the call to method parallel (paralleltest)
level_test.go:52:1: Function TestNewAtomicLevel missing the call to method parallel (paralleltest)
level_test.go:61:1: Function TestParseAtomicLevel missing the call to method parallel (paralleltest)
level_test.go:83:1: Function TestAtomicLevelMutation missing the call to method parallel (paralleltest)
level_test.go:101:1: Function TestAtomicLevelText missing the call to method parallel (paralleltest)
logger_test.go:49:1: Function TestLoggerAtomicLevel missing the call to method parallel (paralleltest)
logger_test.go:88:1: Function TestLoggerLevel missing the call to method parallel (paralleltest)
logger_test.go:115:1: Function TestLoggerInitialFields missing the call to method parallel (paralleltest)
logger_test.go:128:1: Function TestLoggerWith missing the call to method parallel (paralleltest)
logger_test.go:155:2: Range statement for test TestLoggerWith missing the call to method parallel in test Run (paralleltest)
logger_test.go:178:1: Function TestLoggerWithCaptures missing the call to method parallel (paralleltest)
logger_test.go:339:2: Range statement for test TestLoggerWithCaptures missing the call to method parallel in test Run (paralleltest)
logger_test.go:375:1: Function TestLoggerLogPanic missing the call to method parallel (paralleltest)
logger_test.go:405:1: Function TestLoggerLogFatal missing the call to method parallel (paralleltest)
logger_test.go:432:1: Function TestLoggerLeveledMethods missing the call to method parallel (paralleltest)
logger_test.go:458:1: Function TestLoggerLogLevels missing the call to method parallel (paralleltest)
logger_test.go:481:1: Function TestLoggerAlwaysPanics missing the call to method parallel (paralleltest)
logger_test.go:497:1: Function TestLoggerAlwaysFatals missing the call to method parallel (paralleltest)
logger_test.go:518:1: Function TestLoggerDPanic missing the call to method parallel (paralleltest)
logger_test.go:539:1: Function TestLoggerNoOpsDisabledLevels missing the call to method parallel (paralleltest)
logger_test.go:551:1: Function TestLoggerNames missing the call to method parallel (paralleltest)
logger_test.go:590:1: Function TestLoggerWriteFailure missing the call to method parallel (paralleltest)
logger_test.go:607:1: Function TestLoggerSync missing the call to method parallel (paralleltest)
logger_test.go:614:1: Function TestLoggerSyncFail missing the call to method parallel (paralleltest)
logger_test.go:627:1: Function TestLoggerAddCaller missing the call to method parallel (paralleltest)
logger_test.go:659:1: Function TestLoggerAddCallerFunction missing the call to method parallel (paralleltest)
logger_test.go:739:1: Function TestLoggerAddCallerFail missing the call to method parallel (paralleltest)
logger_test.go:762:1: Function TestLoggerReplaceCore missing the call to method parallel (paralleltest)
logger_test.go:774:1: Function TestLoggerIncreaseLevel missing the call to method parallel (paralleltest)
logger_test.go:789:1: Function TestLoggerHooks missing the call to method parallel (paralleltest)
logger_test.go:798:1: Function TestLoggerConcurrent missing the call to method parallel (paralleltest)
logger_test.go:828:1: Function TestLoggerFatalOnNoop missing the call to method parallel (paralleltest)
logger_test.go:839:1: Function TestLoggerCustomOnFatal missing the call to method parallel (paralleltest)
logger_test.go:857:2: Range statement for test TestLoggerCustomOnFatal missing the call to method parallel in test Run (paralleltest)
logger_test.go:891:1: Function TestLoggerWithFatalHook missing the call to method parallel (paralleltest)
logger_test.go:900:1: Function TestNopLogger missing the call to method parallel (paralleltest)
logger_test.go:903:2: Function TestNopLogger missing the call to method parallel in the test run (paralleltest)
logger_test.go:910:2: Function TestNopLogger missing the call to method parallel in the test run (paralleltest)
logger_test.go:914:2: Function TestNopLogger missing the call to method parallel in the test run (paralleltest)
logger_test.go:921:1: Function TestMust missing the call to method parallel (paralleltest)
logger_test.go:922:2: Function TestMust missing the call to method parallel in the test run (paralleltest)
logger_test.go:926:2: Function TestMust missing the call to method parallel in the test run (paralleltest)
sink_test.go:47:1: Function TestRegisterSink missing the call to method parallel (paralleltest)
sink_test.go:86:1: Function TestRegisterSinkErrors missing the call to method parallel (paralleltest)
sink_test.go:100:2: Range statement for test TestRegisterSinkErrors missing the call to method parallel in test Run (paralleltest)
stacktrace_ext_test.go:49:1: Function TestStacktraceFiltersZapLog missing the call to method parallel (paralleltest)
stacktrace_ext_test.go:59:1: Function TestStacktraceFiltersZapMarshal missing the call to method parallel (paralleltest)
stacktrace_ext_test.go:86:1: Function TestStacktraceFiltersVendorZap missing the call to method parallel (paralleltest)
stacktrace_ext_test.go:122:1: Function TestStacktraceWithoutCallerSkip missing the call to method parallel (paralleltest)
stacktrace_ext_test.go:133:1: Function TestStacktraceWithCallerSkip missing the call to method parallel (paralleltest)
sugar_test.go:36:1: Function TestSugarWith missing the call to method parallel (paralleltest)
sugar_test.go:187:1: Function TestSugarFieldsInvalidPairs missing the call to method parallel (paralleltest)
sugar_test.go:207:1: Function TestSugarStructuredLogging missing the call to method parallel (paralleltest)
sugar_test.go:244:1: Function TestSugarConcatenatingLogging missing the call to method parallel (paralleltest)
sugar_test.go:276:1: Function TestSugarTemplatedLogging missing the call to method parallel (paralleltest)
sugar_test.go:312:1: Function TestSugarLnLogging missing the call to method parallel (paralleltest)
sugar_test.go:348:1: Function TestSugarLnLoggingIgnored missing the call to method parallel (paralleltest)
sugar_test.go:355:1: Function TestSugarPanicLogging missing the call to method parallel (paralleltest)
sugar_test.go:390:1: Function TestSugarFatalLogging missing the call to method parallel (paralleltest)
sugar_test.go:426:1: Function TestSugarAddCaller missing the call to method parallel (paralleltest)
sugar_test.go:451:1: Function TestSugarAddCallerFail missing the call to method parallel (paralleltest)
sugar_test.go:469:1: Function TestSugarWithOptionsIncreaseLevel missing the call to method parallel (paralleltest)
sugar_test.go:485:1: Function TestSugarLnWithOptionsIncreaseLevel missing the call to method parallel (paralleltest)
time_test.go:30:1: Function TestTimeToMillis missing the call to method parallel (paralleltest)
writer_test.go:38:1: Function TestOpenNoPaths missing the call to method parallel (paralleltest)
writer_test.go:51:1: Function TestOpen missing the call to method parallel (paralleltest)
writer_test.go:82:2: Range statement for test TestOpen missing the call to method parallel in test Run (paralleltest)
writer_test.go:96:1: Function TestOpenPathsNotFound missing the call to method parallel (paralleltest)
writer_test.go:124:2: Range statement for test TestOpenPathsNotFound missing the call to method parallel in test Run (paralleltest)
writer_test.go:142:1: Function TestOpenRelativePath missing the call to method parallel (paralleltest)
writer_test.go:162:1: Function TestOpenFails missing the call to method parallel (paralleltest)
writer_test.go:179:1: Function TestOpenOtherErrors missing the call to method parallel (paralleltest)
writer_test.go:214:2: Range statement for test TestOpenOtherErrors missing the call to method parallel in test Run (paralleltest)
writer_test.go:241:1: Function TestOpenWithErroringSinkFactory missing the call to method parallel (paralleltest)
writer_test.go:254:1: Function TestCombineWriteSyncers missing the call to method parallel (paralleltest)
zapcore/buffered_write_syncer_test.go:33:1: Function TestBufferWriter missing the call to method parallel (paralleltest)
zapcore/buffered_write_syncer_test.go:36:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:47:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:56:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:64:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:77:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:88:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:99:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:109:2: Function TestBufferWriter missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:130:1: Function TestBufferWriterWithoutStart missing the call to method parallel (paralleltest)
zapcore/buffered_write_syncer_test.go:131:2: Function TestBufferWriterWithoutStart missing the call to method parallel in the test run (paralleltest)
zapcore/buffered_write_syncer_test.go:136:2: Function TestBufferWriterWithoutStart missing the call to method parallel in the test run (paralleltest)
zapcore/clock_test.go:33:1: Function TestSystemClock_NewTicker missing the call to method parallel (paralleltest)
zapcore/console_encoder_test.go:38:1: Function TestConsoleSeparator missing the call to method parallel (paralleltest)
zapcore/console_encoder_test.go:66:2: Range statement for test TestConsoleSeparator missing the call to method parallel in test Run (paralleltest)
zapcore/core_test.go:40:1: Function TestNopCore missing the call to method parallel (paralleltest)
zapcore/core_test.go:69:1: Function TestIOCore missing the call to method parallel (paralleltest)
zapcore/core_test.go:110:1: Function TestIOCoreSyncFail missing the call to method parallel (paralleltest)
zapcore/core_test.go:129:1: Function TestIOCoreSyncsOutput missing the call to method parallel (paralleltest)
zapcore/core_test.go:156:1: Function TestIOCoreWriteFailure missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:77:1: Function TestEncoderConfiguration missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:563:1: Function TestLevelEncoders missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:586:1: Function TestTimeEncoders missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:618:1: Function TestTimeEncodersWrongYAML missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:629:1: Function TestTimeEncodersParseFromJSON missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:652:1: Function TestDurationEncoders missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:677:1: Function TestCallerEncoders missing the call to method parallel (paralleltest)
zapcore/encoder_test.go:701:1: Function TestNameEncoders missing the call to method parallel (paralleltest)
zapcore/entry_test.go:48:1: Function TestPutNilEntry missing the call to method parallel (paralleltest)
zapcore/entry_test.go:76:1: Function TestEntryCaller missing the call to method parallel (paralleltest)
zapcore/entry_test.go:106:1: Function TestCheckedEntryWrite missing the call to method parallel (paralleltest)
zapcore/entry_test.go:107:2: Function TestCheckedEntryWrite missing the call to method parallel in the test run (paralleltest)
zapcore/entry_test.go:112:2: Function TestCheckedEntryWrite missing the call to method parallel in the test run (paralleltest)
zapcore/entry_test.go:118:2: Function TestCheckedEntryWrite missing the call to method parallel in the test run (paralleltest)
zapcore/entry_test.go:124:2: Function TestCheckedEntryWrite missing the call to method parallel in the test run (paralleltest)
zapcore/entry_test.go:134:2: Function TestCheckedEntryWrite missing the call to method parallel in the test run (paralleltest)
zapcore/error_test.go:67:1: Function TestErrorEncoding missing the call to method parallel (paralleltest)
zapcore/error_test.go:155:1: Function TestRichErrorSupport missing the call to method parallel (paralleltest)
zapcore/field_test.go:96:1: Function TestUnknownFieldType missing the call to method parallel (paralleltest)
zapcore/field_test.go:104:1: Function TestFieldAddingError missing the call to method parallel (paralleltest)
zapcore/field_test.go:130:1: Function TestFields missing the call to method parallel (paralleltest)
zapcore/field_test.go:183:1: Function TestInlineMarshaler missing the call to method parallel (paralleltest)
zapcore/field_test.go:204:1: Function TestEquals missing the call to method parallel (paralleltest)
zapcore/hook_test.go:33:1: Function TestHooks missing the call to method parallel (paralleltest)
zapcore/hook_test.go:44:2: Range statement for test TestHooks missing the call to method parallel in test Run (paralleltest)
zapcore/increase_level_test.go:34:1: Function TestIncreaseLevel missing the call to method parallel (paralleltest)
zapcore/increase_level_test.go:80:2: Range statement for test TestIncreaseLevel missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_impl_test.go:47:1: Function TestJSONClone missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:60:1: Function TestJSONEscaping missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:95:2: Function TestJSONEscaping missing the call to method parallel in the test run (paralleltest)
zapcore/json_encoder_impl_test.go:103:2: Function TestJSONEscaping missing the call to method parallel in the test run (paralleltest)
zapcore/json_encoder_impl_test.go:112:1: Function TestJSONEncoderObjectFields missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:284:2: Range statement for test TestJSONEncoderObjectFields missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_impl_test.go:291:1: Function TestJSONEncoderTimeFormats missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:333:2: Range statement for test TestJSONEncoderTimeFormats missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_impl_test.go:340:1: Function TestJSONEncoderArrays missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:442:2: Range statement for test TestJSONEncoderArrays missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_impl_test.go:459:1: Function TestJSONEncoderTimeArrays missing the call to method parallel (paralleltest)
zapcore/json_encoder_impl_test.go:493:2: Range statement for test TestJSONEncoderTimeArrays missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_impl_test.go:655:1: Function TestJSONQuick missing the call to method parallel (paralleltest)
zapcore/json_encoder_test.go:39:1: Function TestJSONEncodeEntry missing the call to method parallel (paralleltest)
zapcore/json_encoder_test.go:128:2: Range statement for test TestJSONEncodeEntry missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_test.go:139:1: Function TestNoEncodeLevelSupplied missing the call to method parallel (paralleltest)
zapcore/json_encoder_test.go:168:1: Function TestJSONEmptyConfig missing the call to method parallel (paralleltest)
zapcore/json_encoder_test.go:186:2: Range statement for test TestJSONEmptyConfig missing the call to method parallel in test Run (paralleltest)
zapcore/json_encoder_test.go:215:1: Function TestJSONCustomReflectedEncoder missing the call to method parallel (paralleltest)
zapcore/lazy_with_test.go:60:1: Function TestLazyCore missing the call to method parallel (paralleltest)
zapcore/lazy_with_test.go:122:2: Range statement for test TestLazyCore missing the call to method parallel in test Run (paralleltest)
zapcore/level_strings_test.go:29:1: Function TestAllLevelsCoveredByLevelString missing the call to method parallel (paralleltest)
zapcore/level_test.go:32:1: Function TestLevelString missing the call to method parallel (paralleltest)
zapcore/level_test.go:51:1: Function TestLevelText missing the call to method parallel (paralleltest)
zapcore/level_test.go:80:1: Function TestParseLevel missing the call to method parallel (paralleltest)
zapcore/level_test.go:101:1: Function TestCapitalLevelsParse missing the call to method parallel (paralleltest)
zapcore/level_test.go:122:1: Function TestWeirdLevelsParse missing the call to method parallel (paralleltest)
zapcore/level_test.go:153:1: Function TestLevelNils missing the call to method parallel (paralleltest)
zapcore/level_test.go:169:1: Function TestLevelUnmarshalUnknownText missing the call to method parallel (paralleltest)
zapcore/level_test.go:175:1: Function TestLevelAsFlagValue missing the call to method parallel (paralleltest)
zapcore/level_test.go:215:1: Function TestLevelOf missing the call to method parallel (paralleltest)
zapcore/memory_encoder_test.go:31:1: Function TestMapObjectEncoderAdd missing the call to method parallel (paralleltest)
zapcore/memory_encoder_test.go:250:2: Range statement for test TestMapObjectEncoderAdd missing the call to method parallel in test Run (paralleltest)
zapcore/memory_encoder_test.go:259:1: Function TestSliceArrayEncoderAppend missing the call to method parallel (paralleltest)
zapcore/memory_encoder_test.go:345:2: Range statement for test TestSliceArrayEncoderAppend missing the call to method parallel in test Run (paralleltest)
zapcore/memory_encoder_test.go:361:1: Function TestMapObjectEncoderReflectionFailures missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:69:1: Function TestSampler missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:91:1: Function TestLevelOfSampler missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:104:1: Function TestSamplerDisabledLevels missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:113:1: Function TestSamplerTicking missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:169:1: Function TestSamplerConcurrent missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:250:1: Function TestSamplerRaces missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:271:1: Function TestSamplerUnknownLevels missing the call to method parallel (paralleltest)
zapcore/sampler_test.go:278:2: Range statement for test TestSamplerUnknownLevels missing the call to method parallel in test Run (paralleltest)
zapcore/sampler_test.go:291:1: Function TestSamplerWithZeroThereafter missing the call to method parallel (paralleltest)
zapcore/tee_test.go:41:1: Function TestTeeUnusualInput missing the call to method parallel (paralleltest)
zapcore/tee_test.go:43:2: Function TestTeeUnusualInput missing the call to method parallel in the test run (paralleltest)
zapcore/tee_test.go:47:2: Function TestTeeUnusualInput missing the call to method parallel in the test run (paralleltest)
zapcore/tee_test.go:52:1: Function TestLevelOfTee missing the call to method parallel (paralleltest)
zapcore/tee_test.go:90:1: Function TestTeeCheck missing the call to method parallel (paralleltest)
zapcore/tee_test.go:116:1: Function TestTeeWrite missing the call to method parallel (paralleltest)
zapcore/tee_test.go:135:1: Function TestTeeWith missing the call to method parallel (paralleltest)
zapcore/tee_test.go:152:1: Function TestTeeEnabled missing the call to method parallel (paralleltest)
zapcore/tee_test.go:174:1: Function TestTeeSync missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:45:1: Function TestAddSyncWriteSyncer missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:58:1: Function TestAddSyncWriter missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:67:1: Function TestNewMultiWriteSyncerWorksForSingleWriter missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:77:1: Function TestMultiWriteSyncerWritesBoth missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:91:1: Function TestMultiWriteSyncerFailsWrite missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:97:1: Function TestMultiWriteSyncerFailsShortWrite missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:104:1: Function TestWritestoAllSyncs_EvenIfFirstErrors missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:114:1: Function TestMultiWriteSyncerSync_PropagatesErrors missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:122:1: Function TestMultiWriteSyncerSync_NoErrorsOnDiscard missing the call to method parallel (paralleltest)
zapcore/write_syncer_test.go:127:1: Function TestMultiWriteSyncerSync_AllCalled missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:34:1: Function TestLoggerInfoExpected missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:68:1: Function TestLoggerDebugExpected missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:88:1: Function TestLoggerDebugSuppressed missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:98:1: Function TestLoggerWarningExpected missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:118:1: Function TestLoggerErrorExpected missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:138:1: Function TestLoggerFatalExpected missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:158:1: Function TestLoggerV missing the call to method parallel (paralleltest)
zapgrpc/zapgrpc_test.go:200:2: Range statement for test TestLoggerV missing the call to method parallel in test Run (paralleltest)
zapio/writer_test.go:173:2: Function TestWrite_Sync missing the call to method parallel in the test run (paralleltest)
zapio/writer_test.go:177:2: Function TestWrite_Sync missing the call to method parallel in the test run (paralleltest)
zapio/writer_test.go:187:2: Function TestWrite_Sync missing the call to method parallel in the test run (paralleltest)
zaptest/logger_test.go:37:1: Function TestTestLogger missing the call to method parallel (paralleltest)
zaptest/logger_test.go:61:1: Function TestTestLoggerSupportsLevels missing the call to method parallel (paralleltest)
zaptest/logger_test.go:83:1: Function TestTestLoggerSupportsWrappedZapOptions missing the call to method parallel (paralleltest)
zaptest/logger_test.go:107:1: Function TestTestingWriter missing the call to method parallel (paralleltest)
zaptest/logger_test.go:116:1: Function TestTestLoggerErrorOutput missing the call to method parallel (paralleltest)
zaptest/observer/logged_entry_test.go:32:1: Function TestLoggedEntryContextMap missing the call to method parallel (paralleltest)
zaptest/observer/logged_entry_test.go:80:2: Range statement for test TestLoggedEntryContextMap missing the call to method parallel in test Run (paralleltest)
zaptest/observer/observer_test.go:40:1: Function TestObserver missing the call to method parallel (paralleltest)
zaptest/observer/observer_test.go:74:1: Function TestObserverWith missing the call to method parallel (paralleltest)
zaptest/observer/observer_test.go:126:1: Function TestFilters missing the call to method parallel (paralleltest)
zaptest/timeout_test.go:31:1: Function TestTimeout missing the call to method parallel (paralleltest)
zaptest/timeout_test.go:36:1: Function TestSleep missing the call to method parallel (paralleltest)
zaptest/writer_test.go:30:1: Function TestSyncer missing the call to method parallel (paralleltest)
zaptest/writer_test.go:38:1: Function TestDiscarder missing the call to method parallel (paralleltest)
zaptest/writer_test.go:46:1: Function TestFailWriter missing the call to method parallel (paralleltest)
zaptest/writer_test.go:54:1: Function TestShortWriter missing the call to method parallel (paralleltest)
zaptest/writer_test.go:62:1: Function TestBuffer missing the call to method parallel (paralleltest)
exp/zapfield/zapfield_test.go:38:1: Function TestFieldConstructors missing the call to method parallel (paralleltest)
exp/zapslog/handler_test.go:53:1: Function TestAddStack missing the call to method parallel (paralleltest)
exp/zapslog/handler_test.go:73:1: Function TestAddStackSkip missing the call to method parallel (paralleltest)
exp/zapslog/handler_test.go:93:2: Function TestEmptyAttr missing the call to method parallel in the test run (paralleltest)
exp/zapslog/handler_test.go:107:2: Function TestEmptyAttr missing the call to method parallel in the test run (paralleltest)
exp/zapslog/handler_test.go:117:2: Function TestEmptyAttr missing the call to method parallel in the test run (paralleltest)
exp/zapslog/handler_test.go:133:2: Function TestWithName missing the call to method parallel in the test run (paralleltest)
exp/zapslog/handler_test.go:142:2: Function TestWithName missing the call to method parallel in the test run (paralleltest)
exp/zapslog/handler_test.go:159:1: Function TestAttrKinds missing the call to method parallel (paralleltest)
zapgrpc/internal/test/grpc_test.go:35:1: Function TestLoggerV2 missing the call to method parallel (paralleltest)
```
</details>1 parent ed7ddb5 commit 7b6c114
File tree
54 files changed
+1327
-460
lines changed- buffer
- exp
- zapfield
- zapslog
- internal
- color
- exit
- pool
- stacktrace
- ztest
- zapcore
- zapgrpc
- internal/test
- zapio
- zaptest
- observer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+1327
-460
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
47 | 75 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
53 | 101 | | |
54 | 102 | | |
| 103 | + | |
55 | 104 | | |
| 105 | + | |
56 | 106 | | |
57 | | - | |
58 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
59 | 113 | | |
60 | 114 | | |
61 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| 107 | + | |
100 | 108 | | |
| 109 | + | |
| 110 | + | |
101 | 111 | | |
102 | 112 | | |
103 | 113 | | |
| |||
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| 121 | + | |
| 122 | + | |
111 | 123 | | |
112 | 124 | | |
113 | 125 | | |
| |||
135 | 147 | | |
136 | 148 | | |
137 | 149 | | |
| 150 | + | |
138 | 151 | | |
| 152 | + | |
| 153 | + | |
139 | 154 | | |
140 | 155 | | |
141 | 156 | | |
| |||
159 | 174 | | |
160 | 175 | | |
161 | 176 | | |
| 177 | + | |
| 178 | + | |
162 | 179 | | |
163 | 180 | | |
164 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| 77 | + | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
70 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| 96 | + | |
| 97 | + | |
82 | 98 | | |
83 | 99 | | |
84 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
0 commit comments