Skip to content

Commit

Permalink
fix bug where I accidentally shredded all the testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmJSD committed Feb 10, 2023
1 parent 2329185 commit 8acf44c
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"v": 1,
"fields": [{
"title": "Hello World!",
"required": true,
"input": {},
"map_to": []
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"v": 1,
"fields": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"v": 1,
"fields": [{}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"v": 1,
"fields": [{
"title": "Hello World!",
"required": true,
"input": {
"type": "string",
"default": "Hello World!",
"autogen": "xD"
},
"map_to": []
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"v": 1,
"fields": [{
"title": "Hello World!",
"required": true,
"input": {
"type": "string",
"default": "Hello World!"
},
"map_to": [{}]
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"v": 100,
"fields": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"v": 1,
"fields": [{
"title": "Hello World!",
"required": true,
"input": {
"type": "string",
"default": "Hello World!",
"autogen": "PROJECT_NAMESPACE"
},
"map_to": [
{
"type": "env",
"key": "HELLO_WORLD"
}
]
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"v": 1,
"fields": [{
"title": "Hello World!",
"required": true,
"input": {
"type": "string",
"default": "Hello World!",
"autogen": "PROJECT_NAMESPACE"
},
"map_to": [
{
"type": "env",
"key": "HELLO_WORLD"
}
]
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"v": 1,
"fields": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"v": 1,
"fields": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"fields": []
}
5 changes: 0 additions & 5 deletions types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,6 @@ func (s *stuffer) stuffType(t reflect.Type) reflect.Value {

func TestTypes(t *testing.T) {
typesUpdate := os.Getenv("TYPES_UPDATE") == "1"
if typesUpdate {
// Remove and remake the types directory.
require.NoError(t, os.RemoveAll("testdata"))
require.NoError(t, os.Mkdir("testdata", 0777))
}

for _, type_ := range types {
t.Run(type_.String(), func(t *testing.T) {
Expand Down

0 comments on commit 8acf44c

Please sign in to comment.