assert.go ×2

Frontier kind: Code frontier

unlabeled · c_3eeb9eab9bea

56 tests · 6 LOC · 1 file · introduces 0 tests · 6 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges6 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2 ranges6 lines · 1 file · Browse complete extent
All tests (intent)
56 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationTestPollWorkflowTaskQueues_DataLossError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_InternalError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollActivityTaskQueues_DataLossError · 0 introduced LOCTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · 0 introduced LOCTestPollActivityTaskQueu…TestPollWorkflowTaskQueues_DataLossError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_InternalError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollActivityTaskQueues_DataLossError · 0 introduced LOCTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · 0 introduced LOCTestPollActivityTaskQueu…TestMultipleEnginesWorkflowTasksRangeStealing · 0 introduced LOCTestMultipleEnginesWorkf…TestMultipleEnginesActivitiesRangeStealing · 0 introduced LOCTestMultipleEnginesActiv…TestConcurrentPublishConsumeWorkflowTasks · 0 introduced LOCTestConcurrentPublishCon…TestPollWorkflowTaskQueues_InternalError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_DataLossError · 0 introduced LOCTestPollWorkflowTaskQueu…TestConcurrentPublishConsumeActivities · 0 introduced LOCTestConcurrentPublishCon…TestPollActivityTaskQueues_DataLossError · 0 introduced LOCTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · 0 introduced LOCTestPollActivityTaskQueu…task_writer.go ×3 · 10 introduced LOCtask_writer.go ×3TestAddTaskAfterStartFailure · 0 introduced LOCTestAddTaskAfterStartFai…TestGetTaskQueueUserData_ReturnsData · 0 introduced LOCTestGetTaskQueueUserData…TestGetTaskQueueUserData_ReturnsData · 0 introduced LOCTestGetTaskQueueUserData…TestGetTaskQueueUserData_ReturnsData · 0 introduced LOCTestGetTaskQueueUserData…TestStart · 0 introduced LOCTestStartsuccess_mutable_access · 0 introduced LOCsuccess_mutable_accesssuccess_readonly_access · 0 introduced LOCsuccess_readonly_accessapi.go ×6 · 66 introduced LOCapi.go ×6version_sets.go ×2 · 17 introduced LOCversion_sets.go ×2TestAddRedirectRuleBasic · 0 introduced LOCTestAddRedirectRuleBasicTestReplaceRedirectRuleBasic · 0 introduced LOCTestReplaceRedirectRuleB…version_sets.go ×2 · 5 introduced LOCversion_sets.go ×2version_sets.go ×1 · 1 introduced LOCversion_sets.go ×1TestReplaceAssignmentRuleBasic · 0 introduced LOCTestReplaceAssignmentRul…TestNewDefaultUpdate · 0 introduced LOCTestNewDefaultUpdateTestNewCompatibleWithVerInOlderSet · 0 introduced LOCTestNewCompatibleWithVer…TestNewDefaultSetUpdateCompatWithNonDefaultSet · 0 introduced LOCTestNewDefaultSetUpdateC…TestNewCompatibleWithNonDefaultSetUpdate · 0 introduced LOCTestNewCompatibleWithNon…TestNewDefaultSetUpdateCompatWithCurDefault · 0 introduced LOCTestNewDefaultSetUpdateC…TestDeleteAssignmentRuleBasic · 0 introduced LOCTestDeleteAssignmentRule…TestNewDefaultSetUpdateOfEmptyData · 0 introduced LOCTestNewDefaultSetUpdateO…version_sets.go ×1 · 1 introduced LOCversion_sets.go ×1TestInsertAssignmentRuleBasic · 0 introduced LOCTestInsertAssignmentRule…TestCommitBuildIDBasic · 0 introduced LOCTestCommitBuildIDBasicversion_sets.go ×1 · 3 introduced LOCversion_sets.go ×1version_sets.go ×1 · 1 introduced LOCversion_sets.go ×1version_sets.go ×1 · 3 introduced LOCversion_sets.go ×1version_sets.go ×1 · 1 introduced LOCversion_sets.go ×1version_sets.go ×1 · 2 introduced LOCversion_sets.go ×1version_sets.go ×2 · 10 introduced LOCversion_sets.go ×2namespace_handler.go ×1 · 2 introduced LOCnamespace_handler.go ×1version_sets.go ×2 · 13 introduced LOCversion_sets.go ×2TestMergeBadBinaries_Merging, TestMergeBadBinaries_Overriding · 0 introduced LOCTestMergeBadBinaries_Mer…task_queues.pb.go ×1 · 5 introduced LOCtask_queues.pb.go ×1version_sets.go ×2 · 19 introduced LOCversion_sets.go ×2version_sets.go ×1 · 7 introduced LOCversion_sets.go ×1version_rule_helpers.go ×4 · 41 introduced LOCversion_rule_helpers.go …task_queues.pb.go ×2 · 10 introduced LOCtask_queues.pb.go ×2task_queues.pb.go ×1 · 4 introduced LOCtask_queues.pb.go ×1TestDedupLinksFromCallbacks · 0 introduced LOCTestDedupLinksFromCallba…endpoint_registry.go ×1 · 2 introduced LOCendpoint_registry.go ×1endpoint_registry.go ×3 · 9 introduced LOCendpoint_registry.go ×3endpoint_registry.go ×3 · 16 introduced LOCendpoint_registry.go ×3TestGet · 0 introduced LOCTestGetendpoint_registry.go ×2 · 6 introduced LOCendpoint_registry.go ×2TestDecode · 0 introduced LOCTestDecodeTestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/adminservice/v1/request_response.pb.go · 6661 LOCv1/request_response.pb.g…go.temporal.io/server/api/clock/v1/message.go-helpers.pb.go · 80 LOCv1/message.go-helpers.pb…go.temporal.io/server/api/historyservice/v1/request_response.pb.go · 12003 LOCv1/request_response.pb.g…go.temporal.io/server/api/matchingservice/v1/request_response.pb.go · 6878 LOCv1/request_response.pb.g…go.temporal.io/server/api/persistence/v1/task_queues.pb.go · 924 LOCv1/task_queues.pb.gogo.temporal.io/server/common/clock/hybrid_logical_clock/hybrid_logical_clock.go · 102 LOChybrid_logical_clock/hyb…go.temporal.io/server/common/nexus/endpoint_registry.go · 443 LOCnexus/endpoint_registry.…go.temporal.io/server/common/testing/protoassert/assert.go · 122 LOCprotoassert/assert.gogo.temporal.io/server/service/frontend/namespace_handler.go · 1202 LOCfrontend/namespace_handl…go.temporal.io/server/service/history/api/listtasks/api.go · 95 LOClisttasks/api.gogo.temporal.io/server/service/history/tasks/fake_task.go · 72 LOCtasks/fake_task.gogo.temporal.io/server/service/matching/db.go · 995 LOCmatching/db.gogo.temporal.io/server/service/matching/task_writer.go · 234 LOCmatching/task_writer.gogo.temporal.io/server/service/matching/version_rule_helpers.go · 633 LOCmatching/version_rule_he…go.temporal.io/server/service/matching/version_sets.go · 515 LOCmatching/version_sets.gosuccess_mutable_access · introduced test · go.temporal.io/server/chasm/TestNodeSuite/TestGetComponent/success_mutable_accesssuccess_mutable_accesssuccess_readonly_access · introduced test · go.temporal.io/server/chasm/TestNodeSuite/TestGetComponent/success_readonly_accesssuccess_readonly_accessTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestDecode · introduced test · go.temporal.io/server/common/codec/TestJSONPBEncoderSuite/TestDecodeTestDecodeTestGet · introduced test · go.temporal.io/server/common/nexus/TestGetTestGetTestInitializationFallback · introduced test · go.temporal.io/server/common/nexus/TestInitializationFallbackTestInitializationFallba…TestTableVersionErrorResetsMatchingPagination · introduced test · go.temporal.io/server/common/nexus/TestTableVersionErrorResetsMatchingPaginationTestTableVersionErrorRes…TestTableVersionErrorResetsPersistencePagination · introduced test · go.temporal.io/server/common/nexus/TestTableVersionErrorResetsPersistencePaginationTestTableVersionErrorRes…TestDedupLinksFromCallbacks · introduced test · go.temporal.io/server/service/frontend/TestDedupLinksFromCallbacksTestDedupLinksFromCallba…TestMergeBadBinaries_Merging · introduced test · go.temporal.io/server/service/frontend/TestNamespaceHandlerCommonSuite/TestMergeBadBinaries_MergingTestMergeBadBinaries_Mer…TestMergeBadBinaries_Nil · introduced test · go.temporal.io/server/service/frontend/TestNamespaceHandlerCommonSuite/TestMergeBadBinaries_NilTestMergeBadBinaries_NilTestMergeBadBinaries_Overriding · introduced test · go.temporal.io/server/service/frontend/TestNamespaceHandlerCommonSuite/TestMergeBadBinaries_OverridingTestMergeBadBinaries_Ove…TestGetHistoryTasks · introduced test · go.temporal.io/server/service/history/api/listtasks/TestAPISuite/TestGetHistoryTasksTestGetHistoryTasksTestAddNewDefaultAlreadyExtantVersionWithNoConflictSucceeds · introduced test · go.temporal.io/server/service/matching/TestAddNewDefaultAlreadyExtantVersionWithNoConflictSucceedsTestAddNewDefaultAlready…TestAddRedirectRuleBasic · introduced test · go.temporal.io/server/service/matching/TestAddRedirectRuleBasicTestAddRedirectRuleBasicTestAddToExistingSetAlreadyExtantVersionWithNoConflictSucceeds · introduced test · go.temporal.io/server/service/matching/TestAddToExistingSetAlreadyExtantVersionWithNoConflictSucceedsTestAddToExistingSetAlre…TestCommitBuildIDBasic · introduced test · go.temporal.io/server/service/matching/TestCommitBuildIDBasicTestCommitBuildIDBasicTestDeleteAssignmentRuleBasic · introduced test · go.temporal.io/server/service/matching/TestDeleteAssignmentRuleBasicTestDeleteAssignmentRule…TestGetWorkerVersioningRules · introduced test · go.temporal.io/server/service/matching/TestGetWorkerVersioningRulesTestGetWorkerVersioningR…TestInsertAssignmentRuleBasic · introduced test · go.temporal.io/server/service/matching/TestInsertAssignmentRuleBasicTestInsertAssignmentRule…TestMakeExistingSetDefault · introduced test · go.temporal.io/server/service/matching/TestMakeExistingSetDefaultTestMakeExistingSetDefau…TestAddTaskAfterStartFailure · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestAddTaskAfterStartFailureTestAddTaskAfterStartFai…TestConcurrentPublishConsumeActivities · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestConcurrentPublishConsumeActivitiesTestConcurrentPublishCon…TestConcurrentPublishConsumeWorkflowTasks · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestConcurrentPublishConsumeWorkflowTasksTestConcurrentPublishCon…TestGetTaskQueueUserData_ReturnsData · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestGetTaskQueueUserData_ReturnsDataTestGetTaskQueueUserData…TestMultipleEnginesActivitiesRangeStealing · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestMultipleEnginesActivitiesRangeStealingTestMultipleEnginesActiv…TestMultipleEnginesWorkflowTasksRangeStealing · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestMultipleEnginesWorkflowTasksRangeStealingTestMultipleEnginesWorkf…TestPollActivityTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DataLossErrorTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_InternalErrorTestPollActivityTaskQueu…TestPollWorkflowTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DataLossErrorTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_InternalErrorTestPollWorkflowTaskQueu…TestGetTaskQueueUserData_ReturnsData · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestGetTaskQueueUserData_ReturnsDataTestGetTaskQueueUserData…TestPollActivityTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestPollActivityTaskQueues_DataLossErrorTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestPollActivityTaskQueues_InternalErrorTestPollActivityTaskQueu…TestPollWorkflowTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestPollWorkflowTaskQueues_DataLossErrorTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestPollWorkflowTaskQueues_InternalErrorTestPollWorkflowTaskQueu…TestGetTaskQueueUserData_ReturnsData · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestGetTaskQueueUserData_ReturnsDataTestGetTaskQueueUserData…TestPollActivityTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestPollActivityTaskQueues_DataLossErrorTestPollActivityTaskQueu…TestPollActivityTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestPollActivityTaskQueues_InternalErrorTestPollActivityTaskQueu…TestPollWorkflowTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestPollWorkflowTaskQueues_DataLossErrorTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestPollWorkflowTaskQueues_InternalErrorTestPollWorkflowTaskQueu…TestMergeSets · introduced test · go.temporal.io/server/service/matching/TestMergeSetsTestMergeSetsTestNewCompatibleWithNonDefaultSetUpdate · introduced test · go.temporal.io/server/service/matching/TestNewCompatibleWithNonDefaultSetUpdateTestNewCompatibleWithNon…TestNewCompatibleWithVerInOlderSet · introduced test · go.temporal.io/server/service/matching/TestNewCompatibleWithVerInOlderSetTestNewCompatibleWithVer…TestNewDefaultSetUpdateCompatWithCurDefault · introduced test · go.temporal.io/server/service/matching/TestNewDefaultSetUpdateCompatWithCurDefaultTestNewDefaultSetUpdateC…TestNewDefaultSetUpdateCompatWithNonDefaultSet · introduced test · go.temporal.io/server/service/matching/TestNewDefaultSetUpdateCompatWithNonDefaultSetTestNewDefaultSetUpdateC…TestNewDefaultSetUpdateOfEmptyData · introduced test · go.temporal.io/server/service/matching/TestNewDefaultSetUpdateOfEmptyDataTestNewDefaultSetUpdateO…TestNewDefaultUpdate · introduced test · go.temporal.io/server/service/matching/TestNewDefaultUpdateTestNewDefaultUpdateTestPersistUnknownBuildIdAlreadyThere · introduced test · go.temporal.io/server/service/matching/TestPersistUnknownBuildIdAlreadyThereTestPersistUnknownBuildI…TestPromoteSetAlreadyPromotedIsANoop · introduced test · go.temporal.io/server/service/matching/TestPromoteSetAlreadyPromotedIsANoopTestPromoteSetAlreadyPro…TestPromoteWithinSetAlreadyPromotedIsANoop · introduced test · go.temporal.io/server/service/matching/TestPromoteWithinSetAlreadyPromotedIsANoopTestPromoteWithinSetAlre…TestPromoteWithinVersion · introduced test · go.temporal.io/server/service/matching/TestPromoteWithinVersionTestPromoteWithinVersionTestReplaceAssignmentRuleBasic · introduced test · go.temporal.io/server/service/matching/TestReplaceAssignmentRuleBasicTestReplaceAssignmentRul…TestReplaceRedirectRuleBasic · introduced test · go.temporal.io/server/service/matching/TestReplaceRedirectRuleBasicTestReplaceRedirectRuleB…Test_ClearTombstones · introduced test · go.temporal.io/server/service/matching/Test_ClearTombstonesTest_ClearTombstonesTest_RemoveBuildIds_PutsTombstonesOnSuppliedBuildIds · introduced test · go.temporal.io/server/service/matching/Test_RemoveBuildIds_PutsTombstonesOnSuppliedBuildIdsTest_RemoveBuildIds_Puts…TestStart · introduced test · go.temporal.io/server/service/worker/scheduler/TestWorkflow/TestStartTestStartFocused concept · assert.go ×2 · 6 introduced LOCassert.go ×2

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 6 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/testing/protoassert/assert.go 6 introduced LOC · 2 ranges

Open complete file

25
26 // ProtoEqual compares two proto.Message objects for equality
27 > func ProtoEqual(t assert.TestingT, a proto.Message, b proto.Message) bool { assert.go
28 > if th, ok := t.(helper); ok {
29 > th.Helper()
30 > }
31 > if diff := cmp.Diff(a, b, protocmp.Transform()); diff != "" {
32 return assert.Fail(t, fmt.Sprintf("Proto mismatch (-want +got):\n%v", diff))
33 }
34 > return true assert.go
35 }
36