Skip to content

Commit

Permalink
Add additional test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
novotnyr committed Aug 26, 2024
1 parent 618e1df commit f90019e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@file:Suppress("unused")

package mock.plugin.property

import org.jetbrains.annotations.PropertyKey
import mock.plugin.property.QUIET as Q
import mock.plugin.property.VERBOSE as V

enum class ConstBasedKeyNameLinter(@PropertyKey(resourceBundle = "mock.plugin.property.linter") val titleKey: String) {
QUIET("$PREFIX.$Q"),
VERBOSE("$PREFIX.$V")
}

private const val PREFIX = "mock.plugin.linter"
private const val QUIET = "quiet"
private const val VERBOSE = "verbose"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@file:Suppress("unused")

package mock.plugin.property

import org.jetbrains.annotations.PropertyKey

enum class DynamicKeyName(@PropertyKey(resourceBundle = "mock.plugin.property.linter") val titleKey: String) {
QUIET(prefix() + "." + quiet()),
VERBOSE(prefix() + "." + verbose())
}

private fun prefix() = "mock.plugin.linter"
private fun quiet() = "quiet"
private fun verbose() = "verbose"
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("unused")

package mock.plugin.property

import org.jetbrains.annotations.PropertyKey
Expand Down

0 comments on commit f90019e

Please sign in to comment.