Skip to content

Commit

Permalink
Fix test due to issues in weaver
Browse files Browse the repository at this point in the history
- Cannot add templates to weaver.yaml without losing all defaults (something ODD happens here)
- Cannot run weaver-forge tests on windows (line endings, file-path printing is OS specific)
  • Loading branch information
jsuereth committed Apr 4, 2024
1 parent c5a45d6 commit 48fdc6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 4 additions & 1 deletion crates/weaver_forge/expected_output/attribute_groups.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Semantic Convention Attribute Groups


## flatten
- one
- two
- three
## Group `attributes.jvm.memory` (attribute_group)

### Brief
Expand Down
4 changes: 0 additions & 4 deletions crates/weaver_forge/expected_output/builtin.md

This file was deleted.

6 changes: 6 additions & 0 deletions crates/weaver_forge/templates/test/attribute_groups.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Semantic Convention Attribute Groups

## flatten
{%- set test = [["one", "two"], ["three"]] | flatten -%}
{% for item in test %}
- {{item}}
{%- endfor -%}

{% for group in ctx %}
## Group `{{ group.id }}` ({{ group.type }})

Expand Down
5 changes: 0 additions & 5 deletions crates/weaver_forge/templates/test/builtin.md

This file was deleted.

5 changes: 0 additions & 5 deletions crates/weaver_forge/templates/test/weaver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ type_mapping:
"double[]": "[]double"
"boolean[]": "[]bool"
"string[]": "[]string"

templates:
- pattern: builtin.md
filter: .groups[]
application_mode: single

0 comments on commit 48fdc6c

Please sign in to comment.