You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProviding.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/typing/TypesProvidingTest.kt
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,30 @@ import java.net.URI
12
12
13
13
classTypesProvidingTest :
14
14
FunSpec({
15
+
test("copes with blank typing") {
16
+
// Given
17
+
val actionTypesYml =""
18
+
val actionCoord =ActionCoords("some-owner", "some-name", "v1")
19
+
20
+
// When
21
+
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), { actionTypesYml })
22
+
23
+
// Then
24
+
types.first shouldBe emptyMap()
25
+
}
26
+
27
+
test("copes with comment-only typing") {
28
+
// Given
29
+
val actionTypesYml ="#"
30
+
val actionCoord =ActionCoords("some-owner", "some-name", "v1")
31
+
32
+
// When
33
+
val types = actionCoord.provideTypes(metadataRevision =CommitHash("some-hash"), { actionTypesYml })
34
+
35
+
// Then
36
+
types.first shouldBe emptyMap()
37
+
}
38
+
15
39
test("parses all allowed elements of valid typing") {
0 commit comments