naming.go ×2

Frontier kind: Code frontier

unlabeled · c_aa9099b7c138

19 tests · 3 LOC · 1 file · introduces 0 tests · 3 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges3 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2 ranges3 lines · 1 file · Browse complete extent
All tests (intent)
19 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 specializationapi.go ×2 · 8 introduced LOCapi.go ×2workflow_task_state_machine.go ×1 · 4 introduced LOCworkflow_task_state_mach…Two_page_completion_merges_commands · 0 introduced LOCTwo_page_completion_merg…api.go ×2 · 3 introduced LOCapi.go ×2Accept_Complete · 0 introduced LOCAccept_Completeapi.go ×1 · 1 introduced LOCapi.go ×1Write_failed_on_normal_task_queue · 0 introduced LOCWrite_failed_on_normal_t…api.go ×4 · 29 introduced LOCapi.go ×4test_vars.go ×1 · 7 introduced LOCtest_vars.go ×1update.go ×2 · 4 introduced LOCupdate.go ×2update.go ×1 · 5 introduced LOCupdate.go ×1workflow_task_state_machine.go ×1 · 5 introduced LOCworkflow_task_state_mach…mutable_state_impl.go ×20 · 150 introduced LOCmutable_state_impl.go ×2…Discard_speculative_WFT_with_events · 0 introduced LOCDiscard_speculative_WFT_…test_vars.go ×1 · 3 introduced LOCtest_vars.go ×1workflow_task_state_machine.go ×2 · 26 introduced LOCworkflow_task_state_mach…history_require.go ×1 · 1 introduced LOChistory_require.go ×1Reject · 0 introduced LOCRejectindexedtakelist.go ×1 · 30 introduced LOCindexedtakelist.go ×1workflow_task_state_machine.go ×1 · 1 introduced LOCworkflow_task_state_mach…indexedtakelist.go ×1 · 13 introduced LOCindexedtakelist.go ×1mutable_state_mock.go ×2 · 11 introduced LOCmutable_state_mock.go ×2workflow_task_completed_handler.go ×1 · 3 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 1 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×2 · 7 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 4 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×2 · 16 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 1 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 2 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×2 · 4 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 1 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×2 · 9 introduced LOCworkflow_task_completed_…TestWithValidMessage · 0 introduced LOCTestWithValidMessagenaming.go ×1 · 3 introduced LOCnaming.go ×1naming.go ×3 · 7 introduced LOCnaming.go ×3naming.go ×1 · 2 introduced LOCnaming.go ×1naming.go ×1 · 1 introduced LOCnaming.go ×1naming.go ×1 · 2 introduced LOCnaming.go ×1naming.go ×1 · 2 introduced LOCnaming.go ×1naming.go ×1 · 4 introduced LOCnaming.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/persistence/v1/update.go-helpers.pb.go · 154 LOCv1/update.go-helpers.pb.…go.temporal.io/server/common/collection/indexedtakelist.go · 62 LOCcollection/indexedtakeli…go.temporal.io/server/common/persistence/history_manager_util.go · 171 LOCpersistence/history_mana…go.temporal.io/server/common/protocol/naming.go · 75 LOCprotocol/naming.gogo.temporal.io/server/common/testing/historyrequire/history_require.go · 612 LOChistoryrequire/history_r…go.temporal.io/server/common/testing/protoutils/any.go · 31 LOCprotoutils/any.gogo.temporal.io/server/common/testing/testvars/test_vars.go · 460 LOCtestvars/test_vars.gogo.temporal.io/server/common/testing/updateutils/update.go · 139 LOCupdateutils/update.gogo.temporal.io/server/service/history/api/get_history_util.go · 639 LOCapi/get_history_util.gogo.temporal.io/server/service/history/api/respondworkflowtaskcompleted/api.go · 1173 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/workflow_size_checker.go · 204 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/workflow_task_completed_handler.go · 1625 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/history/interfaces/mutable_state_mock.go · 3893 LOCinterfaces/mutable_state…go.temporal.io/server/service/history/workflow/mutable_state_impl.go · 9930 LOCworkflow/mutable_state_i…go.temporal.io/server/service/history/workflow/update/update.go · 851 LOCupdate/update.gogo.temporal.io/server/service/history/workflow/workflow_task_state_machine.go · 1602 LOCworkflow/workflow_task_s…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…nil_message · introduced test · go.temporal.io/server/common/protocol/TestNilSafety/nil_messagenil_messagenil_message_body · introduced test · go.temporal.io/server/common/protocol/TestNilSafety/nil_message_bodynil_message_bodyTestWithInvalidBody · introduced test · go.temporal.io/server/common/protocol/TestWithInvalidBodyTestWithInvalidBodyTestWithValidMessage · introduced test · go.temporal.io/server/common/protocol/TestWithValidMessageTestWithValidMessagedeliver_message_failure · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/deliver_message_failuredeliver_message_failuredeliver_message_success · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/deliver_message_successdeliver_message_successmessage_for_unsupported_protocol · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/message_for_unsupported_protocolmessage_for_unsupported_…message_too_large · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/message_too_largemessage_too_largeupdate_not_found · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/update_not_foundupdate_not_foundAccept_Complete · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Accept_CompleteAccept_CompleteDiscard_speculative_WFT_with_events · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Discard_speculative_WFT_with_eventsDiscard_speculative_WFT_…Do_not_discard_speculative_WFT_with_more_than_10_events · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Do_not_discard_speculative_WFT_with_more_than_10_eventsDo_not_discard_speculati…GetHistory_failed · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/GetHistory_failedGetHistory_failedReject · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/RejectRejectWrite_failed_on_normal_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_normal_task_queueWrite_failed_on_normal_t…Write_failed_on_sticky_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_sticky_task_queueWrite_failed_on_sticky_t…Duplicate_intermediate_page_is_idempotent · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Duplicate_intermediate_page_is_idempotentDuplicate_intermediate_p…Single_page_completion_unchanged_when_pagination_enabled · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Single_page_completion_unchanged_when_pagination_enabledSingle_page_completion_u…Two_page_completion_merges_commands · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Two_page_completion_merges_commandsTwo_page_completion_merg…Focused concept · naming.go ×2 · 3 introduced LOCnaming.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: 3 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/protocol/naming.go 3 introduced LOC · 2 ranges

Open complete file

42 // message type of the body and the type of the protocol to which this message
43 // belongs.
44 > func Identify(msg *protocolpb.Message) (Type, MessageType, error) { naming.go
45 > if msg == nil {
46 return TypeUnknown, MessageTypeUnknown, errNilMsg
47 > } else if msg.Body == nil { naming.go
48 return TypeUnknown, MessageTypeUnknown, errNilBody
49 }