Skip to content

Commit

Permalink
Bump com.lemonappdev:konsist from 0.16.0 to 0.16.1 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Sep 10, 2024
1 parent a7d83b3 commit d929a81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AnnotationsKonsistTest : DescribeSpec({
interfaces.shouldBeEmpty()
objects.shouldBeEmpty()

withData(nameFn = { it.fullyQualifiedName }, classes) { cls ->
withData(nameFn = { it.fullyQualifiedName.toString() }, classes) { cls ->
cls.assertTrue { it.hasAnnotationModifier }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PacketKonsistTest : DescribeSpec({
describe("Packet.Server subclasses have @PacketType annotation") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withParentOf(Packet.Server::class),
) { packetClass ->
Expand All @@ -52,7 +52,7 @@ class PacketKonsistTest : DescribeSpec({
describe("Packet classes with @PacketType annotation extend Packet.Server") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withAnnotationOf(PacketType::class),
) { packetClass ->
Expand All @@ -63,7 +63,7 @@ class PacketKonsistTest : DescribeSpec({
describe("@PacketType annotations use type from CorePacketType object") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withAnnotationOf(PacketType::class),
) { packetClass ->
Expand All @@ -86,7 +86,7 @@ class PacketKonsistTest : DescribeSpec({
describe("SimpleEventPacket subclasses have @PacketSubtype annotation") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
packetClasses.withParentOf(SimpleEventPacket::class),
) { packetClass ->
Expand All @@ -97,7 +97,7 @@ class PacketKonsistTest : DescribeSpec({
describe("Packet classes with @PacketSubtype annotation extend SimpleEventPacket") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withAnnotationOf(PacketSubtype::class),
) { packetClass ->
Expand All @@ -110,7 +110,7 @@ class PacketKonsistTest : DescribeSpec({
describe("@PacketSubtype annotations use subtype from SimpleEventPacket.Subtype object") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withAnnotationOf(PacketSubtype::class),
) { packetClass ->
Expand All @@ -137,7 +137,7 @@ class PacketKonsistTest : DescribeSpec({
describe("Client packet classes have neither @PacketType nor @PacketSubtype") {
withData(
nameFn = {
classNameRegex.find(it.fullyQualifiedName)?.value?.substring(1) ?: it.name
it.fullyQualifiedName?.let(classNameRegex::find)?.value?.substring(1) ?: it.name
},
classes.withParentOf(Packet.Client::class, indirectParents = true),
) { packetClass ->
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gradle-pitest = "1.15.0"
junit = "4.13.2"
koin = "3.5.6"
koin-annotations = "1.3.1"
konsist = "0.16.0"
konsist = "0.16.1"
korlibs = "6.0.0-alpha2"
kotest = "5.9.1"
kotest-koin = "1.3.0"
Expand Down

0 comments on commit d929a81

Please sign in to comment.