From a800e6cc82e9f5883fa25ed02ca7f3faf656ed3b Mon Sep 17 00:00:00 2001 From: Lukas Jarosch Date: Fri, 9 Feb 2024 17:29:07 +0100 Subject: [PATCH] feat: more test data --- go.mod | 3 ++- go.sum | 2 ++ testdata/classes/food.yaml | 2 ++ testdata/classes/food/common.yaml | 2 ++ testdata/classes/people/jane.yaml | 17 +++++++++++++++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 testdata/classes/food.yaml create mode 100644 testdata/classes/food/common.yaml create mode 100644 testdata/classes/people/jane.yaml diff --git a/go.mod b/go.mod index 72ca1b0..803e931 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,13 @@ module github.com/lukasjarosch/skipper go 1.21 require ( + github.com/davecgh/go-spew v1.1.1 + github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.8.4 gopkg.in/yaml.v3 v3.0.1 ) require ( - github.com/davecgh/go-spew v1.1.1 // indirect github.com/kr/pretty v0.2.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect diff --git a/go.sum b/go.sum index fe481f2..9f4945c 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= diff --git a/testdata/classes/food.yaml b/testdata/classes/food.yaml new file mode 100644 index 0000000..6aa5a6e --- /dev/null +++ b/testdata/classes/food.yaml @@ -0,0 +1,2 @@ +food: + required: always diff --git a/testdata/classes/food/common.yaml b/testdata/classes/food/common.yaml new file mode 100644 index 0000000..0b6a38f --- /dev/null +++ b/testdata/classes/food/common.yaml @@ -0,0 +1,2 @@ +common: + should_be_tasty: true diff --git a/testdata/classes/people/jane.yaml b/testdata/classes/people/jane.yaml new file mode 100644 index 0000000..631bbfd --- /dev/null +++ b/testdata/classes/people/jane.yaml @@ -0,0 +1,17 @@ +jane: + name: Jane + age: 30 + gender: female + occupation: Software Engineer + interests: + - Hiking + - Photography + - Cooking + address: + street: 456 Elm Street + city: Towndale + state: State + country: Country + contact: + email: jane@example.com + phone: "+1098765432"