File tree Expand file tree Collapse file tree 10 files changed +38
-13
lines changed
commonMain/kotlin/dev/openfeature/sdk
commonTest/kotlin/dev/openfeature/sdk Expand file tree Collapse file tree 10 files changed +38
-13
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ ij_kotlin_method_call_chain_wrap = normal
68
68
ij_kotlin_method_parameters_new_line_after_left_paren = true
69
69
ij_kotlin_method_parameters_right_paren_on_new_line = true
70
70
ij_kotlin_method_parameters_wrap = on_every_item
71
- ij_kotlin_name_count_to_use_star_import = 5
72
- ij_kotlin_name_count_to_use_star_import_for_members = 3
71
+ ij_kotlin_name_count_to_use_star_import = 999
72
+ ij_kotlin_name_count_to_use_star_import_for_members = 999
73
73
ij_kotlin_packages_to_use_import_on_demand = unset
74
74
ij_kotlin_parameter_annotation_wrap = off
75
75
ij_kotlin_space_after_comma = true
@@ -130,4 +130,7 @@ max_line_length=120
130
130
131
131
# Ignore max line for kotlin test files, the same as Detekt.
132
132
[** /{test,androidTest}/** /* .kt ]
133
- max_line_length =off
133
+ max_line_length =off
134
+
135
+ [* .kts ]
136
+ max_line_length = off
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
-
3
- // ktlint-disable max-line-length
4
2
plugins {
5
3
id(" com.android.library" )
6
4
id(" org.jetbrains.kotlin.multiplatform" )
Original file line number Diff line number Diff line change @@ -2,14 +2,23 @@ package dev.openfeature.sdk
2
2
3
3
import dev.openfeature.sdk.events.OpenFeatureProviderEvents
4
4
import dev.openfeature.sdk.exceptions.OpenFeatureError
5
- import kotlinx.coroutines.*
5
+ import kotlinx.coroutines.CancellationException
6
+ import kotlinx.coroutines.CoroutineDispatcher
7
+ import kotlinx.coroutines.CoroutineScope
8
+ import kotlinx.coroutines.Dispatchers
9
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
10
+ import kotlinx.coroutines.Job
11
+ import kotlinx.coroutines.SupervisorJob
12
+ import kotlinx.coroutines.cancel
13
+ import kotlinx.coroutines.cancelChildren
6
14
import kotlinx.coroutines.flow.Flow
7
15
import kotlinx.coroutines.flow.FlowCollector
8
16
import kotlinx.coroutines.flow.MutableSharedFlow
9
17
import kotlinx.coroutines.flow.MutableStateFlow
10
18
import kotlinx.coroutines.flow.distinctUntilChanged
11
19
import kotlinx.coroutines.flow.filterIsInstance
12
20
import kotlinx.coroutines.flow.flatMapLatest
21
+ import kotlinx.coroutines.launch
13
22
14
23
@Suppress(" TooManyFunctions" )
15
24
object OpenFeatureAPI {
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ import kotlinx.coroutines.launch
18
18
import kotlinx.coroutines.test.StandardTestDispatcher
19
19
import kotlinx.coroutines.test.advanceUntilIdle
20
20
import kotlinx.coroutines.test.runTest
21
- import kotlin.test.*
21
+ import kotlin.test.AfterTest
22
+ import kotlin.test.Test
23
+ import kotlin.test.assertEquals
24
+ import kotlin.test.assertFalse
25
+ import kotlin.test.assertNull
26
+ import kotlin.test.assertTrue
22
27
23
28
@OptIn(ExperimentalCoroutinesApi ::class )
24
29
class DeveloperExperienceTests {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import kotlin.test.Test
4
4
import kotlin.test.assertEquals
5
5
import kotlin.test.assertNull
6
6
7
-
8
7
class EvaluationMetadataTest {
9
8
10
9
private val metadata = EvaluationMetadata .builder()
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import kotlin.test.assertEquals
5
5
import kotlin.test.assertNotNull
6
6
import kotlin.test.assertNull
7
7
8
-
9
8
class ProviderSpecTests {
10
9
11
10
@Test
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ import kotlinx.coroutines.test.TestScope
12
12
import kotlinx.coroutines.test.advanceUntilIdle
13
13
import kotlinx.coroutines.test.runTest
14
14
import kotlin.random.Random
15
- import kotlin.test.*
15
+ import kotlin.test.BeforeTest
16
+ import kotlin.test.Test
17
+ import kotlin.test.assertEquals
18
+ import kotlin.test.assertFalse
19
+ import kotlin.test.assertTrue
16
20
import kotlin.time.Duration
17
21
18
22
class StatusTests {
Original file line number Diff line number Diff line change @@ -118,7 +118,10 @@ class TelemetryTest {
118
118
)
119
119
val evaluationEvent = createEvaluationEvent(hookContext, flagEvaluationDetails)
120
120
121
- assertEquals(EvaluationReason .TARGETING_MATCH .name.lowercase(), evaluationEvent.attributes[TELEMETRY_REASON ])
121
+ assertEquals(
122
+ EvaluationReason .TARGETING_MATCH .name.lowercase(),
123
+ evaluationEvent.attributes[TELEMETRY_REASON ]
124
+ )
122
125
}
123
126
}
124
127
Original file line number Diff line number Diff line change 1
1
package dev.openfeature.sdk
2
2
3
3
import kotlinx.coroutines.test.runTest
4
- import kotlin.test.*
4
+ import kotlin.test.AfterTest
5
+ import kotlin.test.BeforeTest
6
+ import kotlin.test.Test
7
+ import kotlin.test.assertEquals
8
+ import kotlin.test.assertFailsWith
9
+ import kotlin.test.assertNotNull
10
+ import kotlin.test.assertNull
5
11
6
12
class TrackingProviderTests {
7
13
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import kotlin.test.Test
4
4
import kotlin.test.assertEquals
5
5
import kotlin.test.assertTrue
6
6
7
-
8
7
class ValueTests {
9
8
10
9
@Test
You can’t perform that action at this time.
0 commit comments