From 8327cc71c2353acb39da76e4926afc99bdccc531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Sun, 16 Feb 2025 21:36:23 +0100 Subject: [PATCH] docs(progress): Add copyright headers --- .../kotlin/ExperimentalProgressApi.kt | 16 ++++++++++++++++ progress/src/commonMain/kotlin/Progression.kt | 18 ++++++++++++++++-- progress/src/commonMain/kotlin/Progressive.kt | 16 ++++++++++++++++ .../kotlin/SimpleLoadingImplementation.kt | 16 ++++++++++++++++ .../report/IntervalReduceProgressReporter.kt | 16 ++++++++++++++++ .../kotlin/report/MapProgressReporter.kt | 16 ++++++++++++++++ .../kotlin/report/NoOpProgressReporter.kt | 16 ++++++++++++++++ .../kotlin/report/ProgressReporter.kt | 16 ++++++++++++++++ progress/src/commonTest/kotlin/DoneTest.kt | 16 ++++++++++++++++ .../src/commonTest/kotlin/ProgressiveTest.kt | 16 ++++++++++++++++ .../kotlin/SimpleLoadingImplementationTest.kt | 16 ++++++++++++++++ .../kotlin/UnquantifiedLoadingTest.kt | 16 ++++++++++++++++ .../IntervalReduceProgressReporterTest.kt | 16 ++++++++++++++++ .../kotlin/report/MapProgressReporterTest.kt | 16 ++++++++++++++++ .../kotlin/report/NoOpProgressReporterTest.kt | 16 ++++++++++++++++ 15 files changed, 240 insertions(+), 2 deletions(-) diff --git a/progress/src/commonMain/kotlin/ExperimentalProgressApi.kt b/progress/src/commonMain/kotlin/ExperimentalProgressApi.kt index 8ac543d..5ff0940 100644 --- a/progress/src/commonMain/kotlin/ExperimentalProgressApi.kt +++ b/progress/src/commonMain/kotlin/ExperimentalProgressApi.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2024-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress @RequiresOptIn("This API is experimental and may be changed in the future. If you find it useful, please get in touch to share your use-case: https://gitlab.com/opensavvy/groundwork/pedestal/-/issues/new.") diff --git a/progress/src/commonMain/kotlin/Progression.kt b/progress/src/commonMain/kotlin/Progression.kt index 8291809..e31a5e6 100644 --- a/progress/src/commonMain/kotlin/Progression.kt +++ b/progress/src/commonMain/kotlin/Progression.kt @@ -1,8 +1,22 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress import opensavvy.progress.Progress.Done -import opensavvy.progress.Progress.Loading -import opensavvy.progress.Progress.Loading.Quantified import opensavvy.progress.Progress.Loading.Unquantified /** diff --git a/progress/src/commonMain/kotlin/Progressive.kt b/progress/src/commonMain/kotlin/Progressive.kt index d3b0998..2e4d9c7 100644 --- a/progress/src/commonMain/kotlin/Progressive.kt +++ b/progress/src/commonMain/kotlin/Progressive.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2024-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress /** diff --git a/progress/src/commonMain/kotlin/SimpleLoadingImplementation.kt b/progress/src/commonMain/kotlin/SimpleLoadingImplementation.kt index 92560fa..b07c5db 100644 --- a/progress/src/commonMain/kotlin/SimpleLoadingImplementation.kt +++ b/progress/src/commonMain/kotlin/SimpleLoadingImplementation.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress private class SimpleLoadingImplementation( diff --git a/progress/src/commonMain/kotlin/report/IntervalReduceProgressReporter.kt b/progress/src/commonMain/kotlin/report/IntervalReduceProgressReporter.kt index 4affd23..9f21478 100644 --- a/progress/src/commonMain/kotlin/report/IntervalReduceProgressReporter.kt +++ b/progress/src/commonMain/kotlin/report/IntervalReduceProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import opensavvy.progress.Progress diff --git a/progress/src/commonMain/kotlin/report/MapProgressReporter.kt b/progress/src/commonMain/kotlin/report/MapProgressReporter.kt index 2b51538..3b35f18 100644 --- a/progress/src/commonMain/kotlin/report/MapProgressReporter.kt +++ b/progress/src/commonMain/kotlin/report/MapProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import opensavvy.progress.Progress diff --git a/progress/src/commonMain/kotlin/report/NoOpProgressReporter.kt b/progress/src/commonMain/kotlin/report/NoOpProgressReporter.kt index d15bd5a..975c802 100644 --- a/progress/src/commonMain/kotlin/report/NoOpProgressReporter.kt +++ b/progress/src/commonMain/kotlin/report/NoOpProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import opensavvy.progress.Progress diff --git a/progress/src/commonMain/kotlin/report/ProgressReporter.kt b/progress/src/commonMain/kotlin/report/ProgressReporter.kt index 76d9aeb..91dcd6f 100644 --- a/progress/src/commonMain/kotlin/report/ProgressReporter.kt +++ b/progress/src/commonMain/kotlin/report/ProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import opensavvy.progress.Progress diff --git a/progress/src/commonTest/kotlin/DoneTest.kt b/progress/src/commonTest/kotlin/DoneTest.kt index d5cc474..c3337f1 100644 --- a/progress/src/commonTest/kotlin/DoneTest.kt +++ b/progress/src/commonTest/kotlin/DoneTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress import io.kotest.matchers.shouldBe diff --git a/progress/src/commonTest/kotlin/ProgressiveTest.kt b/progress/src/commonTest/kotlin/ProgressiveTest.kt index b3c1791..8661dcb 100644 --- a/progress/src/commonTest/kotlin/ProgressiveTest.kt +++ b/progress/src/commonTest/kotlin/ProgressiveTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2024-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress import io.kotest.assertions.assertSoftly diff --git a/progress/src/commonTest/kotlin/SimpleLoadingImplementationTest.kt b/progress/src/commonTest/kotlin/SimpleLoadingImplementationTest.kt index b2a14c0..adc6e4c 100644 --- a/progress/src/commonTest/kotlin/SimpleLoadingImplementationTest.kt +++ b/progress/src/commonTest/kotlin/SimpleLoadingImplementationTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress import com.benwoodworth.parameterize.parameterOf diff --git a/progress/src/commonTest/kotlin/UnquantifiedLoadingTest.kt b/progress/src/commonTest/kotlin/UnquantifiedLoadingTest.kt index b6fadcc..ddf9e62 100644 --- a/progress/src/commonTest/kotlin/UnquantifiedLoadingTest.kt +++ b/progress/src/commonTest/kotlin/UnquantifiedLoadingTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress import io.kotest.matchers.shouldBe diff --git a/progress/src/commonTest/kotlin/report/IntervalReduceProgressReporterTest.kt b/progress/src/commonTest/kotlin/report/IntervalReduceProgressReporterTest.kt index 8e43b05..da55db2 100644 --- a/progress/src/commonTest/kotlin/report/IntervalReduceProgressReporterTest.kt +++ b/progress/src/commonTest/kotlin/report/IntervalReduceProgressReporterTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import io.kotest.assertions.throwables.shouldThrow diff --git a/progress/src/commonTest/kotlin/report/MapProgressReporterTest.kt b/progress/src/commonTest/kotlin/report/MapProgressReporterTest.kt index 8ec3203..5aa38c7 100644 --- a/progress/src/commonTest/kotlin/report/MapProgressReporterTest.kt +++ b/progress/src/commonTest/kotlin/report/MapProgressReporterTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import io.kotest.matchers.shouldBe diff --git a/progress/src/commonTest/kotlin/report/NoOpProgressReporterTest.kt b/progress/src/commonTest/kotlin/report/NoOpProgressReporterTest.kt index 2e110c7..421fa84 100644 --- a/progress/src/commonTest/kotlin/report/NoOpProgressReporterTest.kt +++ b/progress/src/commonTest/kotlin/report/NoOpProgressReporterTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.report import opensavvy.prepared.runner.kotest.PreparedSpec -- 2.51.2