Skip to content

Commit 341e667

Browse files
committed
Add 'examples' subdir where needed
1 parent 4d163a3 commit 341e667

16 files changed

Lines changed: 23 additions & 12 deletions

File tree

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ parsers:
3636

3737
ignore:
3838
- "tests/"
39+
- "examples/"

.fossa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ vendoredDependencies:
77
exclude:
88
- ".git/**"
99
- "tests/**"
10+
- "examples/**"
1011
- "ci/**"

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- '.github/workflows/build.yml'
99
- 'include/**'
1010
- 'tests/**'
11+
- 'examples/**'
1112
- 'CMakeLists.txt'
1213
- 'cmake/**'
1314
- 'nix/**'
@@ -20,6 +21,7 @@ on:
2021
- '.github/workflows/build.yml'
2122
- 'include/**'
2223
- 'tests/**'
24+
- 'examples/**'
2325
- 'CMakeLists.txt'
2426
- 'cmake/**'
2527
- 'nix/**'

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
- '.codecov.yml'
1717
workflow_dispatch:
1818

19+
# examples/** not included in coverage paths intentionally, see also .codecov.yml
20+
1921
jobs:
2022
coverage:
2123
runs-on:

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- 'docs/**'
1010
- 'include/**'
1111
- 'tests/**'
12+
- 'examples/**'
1213
- 'CMakeLists.txt'
1314
- 'cmake/**'
1415
- '*.md'

.github/workflows/licence.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- '.github/workflows/licence.yml'
99
- 'include/**'
1010
- 'tests/**'
11+
- 'examples/**'
1112
- 'CMakeLists.txt'
1213
- 'cmake/**'
1314
- '.fossa.yml'
@@ -19,6 +20,7 @@ on:
1920
- '.github/workflows/licence.yml'
2021
- 'include/**'
2122
- 'tests/**'
23+
- 'examples/**'
2224
- 'CMakeLists.txt'
2325
- 'cmake/**'
2426
- '.fossa.yml'

cmake/Coverage.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ setup_target_for_coverage_gcovr(
2121
FORMAT ${CODE_COVERAGE_FORMAT}
2222
EXECUTABLE ${CODE_COVERAGE_TEST}
2323
EXECUTABLE_ARGS ${CODE_COVERAGE_TEST_ARGS}
24-
EXCLUDE "tests"
24+
EXCLUDE "tests" "examples"
2525
DEPENDENCIES all
2626
)
2727

docs/choice/and_then.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ A monadic type of the same kind.
2323
## Examples {style: "api"}
2424

2525
:include-template: templates/snippet.md {
26-
path: "examples/simple.cpp",
26+
path: "simple/main.cpp",
2727
surroundedBy: ["// example-choice-parse", "// example-choice-checks"]
2828
}

docs/expected/and_then.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ A monadic type of the same kind.
2323
## Examples {style: "api"}
2424

2525
:include-template: templates/snippet.md {
26-
path: "examples/simple.cpp",
26+
path: "simple/main.cpp",
2727
surroundedBy: ["// example-error-struct", "// example-expected-and_then-value"],
2828
desc: "The resulting value is `13` because `ex` does not contain an `Error` and therefore `and_then` is called."
2929
}
3030

3131
:include-template: templates/snippet.md {
32-
path: "examples/simple.cpp",
32+
path: "simple/main.cpp",
3333
surroundedBy: ["// example-error-struct", "// example-expected-and_then-error"],
3434
desc: "The result is an `Error` because `ex` already contained an `Error` and therefore `and_then` is not called."
3535
}

docs/expected/discard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void
2323
## Examples {style: "api"}
2424

2525
:include-template: templates/snippet.md {
26-
path: "examples/simple.cpp",
26+
path: "simple/main.cpp",
2727
surroundedBy: ["// example-error-struct", "// example-expected-discard"],
2828
desc: "`42` is observed by `inspect` and the value is discarded by `discard` (no warning for discarded result of `inspect`)."
2929
}

0 commit comments

Comments
 (0)