diff --git a/.codecov.yml b/.codecov.yml index d70df7b..a12e1dc 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC # SPDX-License-Identifier: Apache-2.0 --- coverage: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dd39d7..9dd02ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC # SPDX-License-Identifier: Apache-2.0 --- name: CI diff --git a/.github/workflows/dependabot-approver.yml b/.github/workflows/dependabot-approver.yml index 7781d8f..0bcc5e4 100644 --- a/.github/workflows/dependabot-approver.yml +++ b/.github/workflows/dependabot-approver.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 --- name: 'Dependabot auto approval' diff --git a/.github/workflows/proj-xmidt-team.yml b/.github/workflows/proj-xmidt-team.yml index 941a028..408d640 100644 --- a/.github/workflows/proj-xmidt-team.yml +++ b/.github/workflows/proj-xmidt-team.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 --- name: 'PROJ: xmidt-team' diff --git a/.golangci.yaml b/.golangci.yaml index 044722e..d780216 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 --- linters-settings: misspell: diff --git a/.reuse/dep5 b/.reuse/dep5 index 069e586..51e71ed 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -4,30 +4,30 @@ Upstream-Contact: John Bass Source: https://github.com/xmidt-org/chronon Files: .golangci.yml -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: go.mod -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: go.sum -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: .gitignore -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: MAINTAINERS.md -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: README.md -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 Files: .whitesource -Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC License: Apache-2.0 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 1dac7e2..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,29 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## [v0.1.1] -- IsSystemClock for verifying production code initialization - -## [v0.1.0] -- basic examples -- Sleeper can now be used to control sleeping goroutines -- FakeTimer and FakeTicker can now control timers and tickers -- Overhaul of notifications to better support driving goroutines from tests - -## [v0.0.2] -- unit tests -- FakeClock can notify calling code when time-related objects are created - -## [v0.0.1] -- Initial creation - -[Unreleased]: https://github.com/xmidt-org/chronon/compare/v0.1.1..HEAD -[v0.1.1]: https://github.com/xmidt-org/chronon/compare/v0.1.0...v0.1.1 -[v0.1.0]: https://github.com/xmidt-org/chronon/compare/v0.0.2...v0.1.0 -[v0.0.2]: https://github.com/xmidt-org/chronon/compare/v0.0.1...v0.0.2 -[v0.0.1]: https://github.com/xmidt-org/chronon/compare/v0.0.0...v0.0.1 diff --git a/chronon_suite_test.go b/chronon_suite_test.go index 3c5fe43..e1c37ad 100644 --- a/chronon_suite_test.go +++ b/chronon_suite_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/clock.go b/clock.go index 66c31d7..7692ace 100644 --- a/clock.go +++ b/clock.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import "time" diff --git a/context.go b/context.go index 351b5b5..e8c532d 100644 --- a/context.go +++ b/context.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/context_test.go b/context_test.go index 6daa596..685030f 100644 --- a/context_test.go +++ b/context_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeClock.go b/fakeClock.go index 911b26c..b158583 100644 --- a/fakeClock.go +++ b/fakeClock.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeClock_examples_test.go b/fakeClock_examples_test.go index d827276..367a129 100644 --- a/fakeClock_examples_test.go +++ b/fakeClock_examples_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeClock_test.go b/fakeClock_test.go index 3dae16b..deefb8c 100644 --- a/fakeClock_test.go +++ b/fakeClock_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeTicker.go b/fakeTicker.go index f5423bc..d22e49a 100644 --- a/fakeTicker.go +++ b/fakeTicker.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeTicker_test.go b/fakeTicker_test.go index 25d2cdc..808e02e 100644 --- a/fakeTicker_test.go +++ b/fakeTicker_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeTimer.go b/fakeTimer.go index 6524293..89c35de 100644 --- a/fakeTimer.go +++ b/fakeTimer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/fakeTimer_test.go b/fakeTimer_test.go index b78b043..dfc98b4 100644 --- a/fakeTimer_test.go +++ b/fakeTimer_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/listener.go b/listener.go index 89d4341..04b55e1 100644 --- a/listener.go +++ b/listener.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/listener_test.go b/listener_test.go index 45e40b5..0b880f8 100644 --- a/listener_test.go +++ b/listener_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/mocks_test.go b/mocks_test.go index e766710..ece2448 100644 --- a/mocks_test.go +++ b/mocks_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/notifiers.go b/notifiers.go index ed1235f..7fecd4a 100644 --- a/notifiers.go +++ b/notifiers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/notifiers_test.go b/notifiers_test.go index 5c1a3a4..e39813f 100644 --- a/notifiers_test.go +++ b/notifiers_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/sleeper.go b/sleeper.go index ca45679..0d51549 100644 --- a/sleeper.go +++ b/sleeper.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/sleeper_test.go b/sleeper_test.go index 0135940..94695e6 100644 --- a/sleeper_test.go +++ b/sleeper_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/systemClock.go b/systemClock.go index 0bef9e5..22b2860 100644 --- a/systemClock.go +++ b/systemClock.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import "time" diff --git a/systemClock_test.go b/systemClock_test.go index f865ed7..76ff223 100644 --- a/systemClock_test.go +++ b/systemClock_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import ( diff --git a/util.go b/util.go index abb903a..9fd18a7 100644 --- a/util.go +++ b/util.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package chronon import "time"