We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e2855c commit 0405b20Copy full SHA for 0405b20
tests/codegen/event-stream/build.gradle.kts
@@ -83,8 +83,14 @@ fun fillInModel(test: CodegenTest) {
83
}
84
85
val replaced = model
86
- .replace("{protocol-name}", test.protocolName!!)
87
- .replace("{op-traits}", opTraits)
+ .replace(
+ "{protocol-name}",
88
+ test.protocolName ?: throw IllegalStateException("Please specify a protocol name for the codegen test"),
89
+ )
90
91
+ "{op-traits}",
92
+ opTraits,
93
94
95
modelFile.parentFile.mkdirs()
96
modelFile.writeText(replaced)
0 commit comments