event_time_source.go ×3

Frontier kind: Code frontier

unlabeled · c_c3c335886924

7 tests · 47 LOC · 1 file · introduces 0 tests · 10 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges10 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
15 ranges47 lines · 1 file · Browse complete extent
All tests (intent)
7 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 specializationTestPerKeyRateLimit · 0 introduced LOCTestPerKeyRateLimitTestRateLimitedBacklog · 0 introduced LOCTestRateLimitedBacklogmatcher_data.go ×1 · 5 introduced LOCmatcher_data.go ×1TestLiveness · 0 introduced LOCTestLivenessTestCache_UnusedExpiryPin · 0 introduced LOCTestCache_UnusedExpiryPi…lru.go ×1 · 2 introduced LOClru.go ×1lru.go ×6 · 36 introduced LOClru.go ×6event_time_source.go ×1 · 1 introduced LOCevent_time_source.go ×1TestEventTimeSource_AfterFunc_Reset · 0 introduced LOCTestEventTimeSource_Afte…event_time_source.go ×1 · 5 introduced LOCevent_time_source.go ×1event_time_source.go ×3 · 3 introduced LOCevent_time_source.go ×3event_time_source.go ×1 · 3 introduced LOCevent_time_source.go ×1event_time_source.go ×3 · 9 introduced LOCevent_time_source.go ×3event_time_source.go ×1 · 7 introduced LOCevent_time_source.go ×1event_time_source.go ×2 · 4 introduced LOCevent_time_source.go ×2event_time_source.go ×1 · 6 introduced LOCevent_time_source.go ×1event_time_source.go ×1 · 5 introduced LOCevent_time_source.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/cache/lru.go · 497 LOCcache/lru.gogo.temporal.io/server/common/clock/event_time_source.go · 221 LOCclock/event_time_source.…go.temporal.io/server/service/matching/matcher_data.go · 740 LOCmatching/matcher_data.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestCache_UnusedExpiry · introduced test · go.temporal.io/server/common/cache/TestCache_UnusedExpiryTestCache_UnusedExpiryTestCache_UnusedExpiryPin · introduced test · go.temporal.io/server/common/cache/TestCache_UnusedExpiryPinTestCache_UnusedExpiryPi…TestEventTimeSource_AfterFunc_Reset · introduced test · go.temporal.io/server/common/clock/TestEventTimeSource_AfterFunc_ResetTestEventTimeSource_Afte…TestEventTimeSource_NewTimerWithChannelAndReset · introduced test · go.temporal.io/server/common/clock/TestEventTimeSource_NewTimerWithChannelAndResetTestEventTimeSource_NewT…TestLiveness · introduced test · go.temporal.io/server/service/matching/TestLivenessTestLivenessTestPerKeyRateLimit · introduced test · go.temporal.io/server/service/matching/TestMatcherDataSuite/TestPerKeyRateLimitTestPerKeyRateLimitTestRateLimitedBacklog · introduced test · go.temporal.io/server/service/matching/TestMatcherDataSuite/TestRateLimitedBacklogTestRateLimitedBacklogFocused concept · event_time_source.go ×3 · 10 introduced LOCevent_time_source.go ×3

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: 10 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/clock/event_time_source.go 10 introduced LOC · 3 ranges

Open complete file

176
177 // Reset the timer to fire after the specified duration. Returns true if the timer was active.
178 > func (t *fakeTimer) Reset(d time.Duration) bool { event_time_source.go
179 > t.timeSource.mu.Lock()
180 > defer t.timeSource.mu.Unlock()
181 >
182 > if d < 0 {
183 d = 0
184 }
185
186 > wasActive := !t.done event_time_source.go
187 > t.deadline = t.timeSource.now.Add(d)
188 > if t.done {
189 t.done = false
190 t.index = len(t.timeSource.timers)