Skip to content

Commit

Permalink
Add use module yaml parser test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Mar 12, 2024
1 parent 34c3749 commit 433e042
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manifest/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ inputs:
Inputs: []*Input{{Source: "proto:sf.ethereum.type.v1.Block"}, {Store: "pairs"}},
},
},
{
name: "basic module with use",
rawYamlInput: `---
name: use_module
use: converter:dbout_to_graphout
inputs:
- source: proto:sf.ethereum.type.v1.Block
- store: pairs
- map: map_clocks
`,
expectedOutput: Module{
Name: "use_module",
Use: "converter:dbout_to_graphout",
Inputs: []*Input{{Source: "proto:sf.ethereum.type.v1.Block"}, {Store: "pairs"}, {Map: "map_clocks"}},
},
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 433e042

Please sign in to comment.