Skip to content

Commit

Permalink
revert "fix code coverage"
Browse files Browse the repository at this point in the history
This reverts commit 7baa1a5.

Indeed, the changes added by this previous commit were due to a bug in kcov
which is now fixed.

See-also: SimonKagstrom/kcov#459
See-also: SimonKagstrom/kcov#457
Signed-off-by: Mattéo Rossillol‑‑Laruelle <[email protected]>
  • Loading branch information
beatussum committed Aug 5, 2024
1 parent 5350402 commit f9e0cff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spec/actions_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Describe "actions"
End

result() {
@cat <<-EOF
@cat <<- EOF
Usage: ${PWD}/join [options...] [--] [patterns...] [--] [inputs...]
Options:
Expand Down Expand Up @@ -103,7 +103,7 @@ Describe "actions"
Describe "with $1"
It "with not a number"
result() {
@cat <<EOF
@cat << EOF
===============================================================================
Fatal error with the following message:
Expand All @@ -126,7 +126,7 @@ EOF

It "with not a correct option"
result() {
@cat <<EOF
@cat << EOF
Usage: ${PWD}/join [options...] [--] [patterns...] [--] [inputs...]
Options:
Expand Down Expand Up @@ -180,7 +180,7 @@ EOF
AfterRun cleanup

result() {
@cat <<-EOF
@cat <<- EOF
This file is a test template.
[email protected] && [email protected]
Expand Down
8 changes: 4 additions & 4 deletions src/join.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ die() {

[[ -z "${msg}" ]] && msg="(none)"

cat >&2 <<-EOF
cat >&2 <<- EOF
===============================================================================
Fatal error with the following message:
Expand Down Expand Up @@ -110,7 +110,7 @@ list() {
###########

copyright() {
cat <<-EOF
cat <<- EOF
Copyright (C) 2024 Mattéo Rossillol‑‑Laruelle <[email protected]>
This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -149,7 +149,7 @@ join() (
export "${pattern}"="${content}"
done

cat <<-"EOF" | gawk -f - -- "${ref_inputs[@]}" || die
cat <<- "EOF" | gawk -f - -- "${ref_inputs[@]}" || die
BEGIN { FPAT = "@[A-Z]+@" }
NF == 0 { print }
Expand All @@ -166,7 +166,7 @@ join() (
)

usage() {
cat <<-EOF
cat <<- EOF
Usage: ${JOIN_SOURCE} [options...] [--] [patterns...] [--] [inputs...]
Options:
Expand Down

0 comments on commit f9e0cff

Please sign in to comment.