Skip to content

Commit

Permalink
Move code generation scripts to tools/ + "cmp_" prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
  • Loading branch information
maxatome committed May 27, 2018
1 parent 8eb3086 commit f138e00
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions gen_funcs.pl → tools/gen_funcs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ package testdeep
push(@{$funcs{$1}{examples}}, { name => $2 // '', code => $3 });
}

open(my $fh, "| gofmt -s > '$dir/funcs.go'");
open(my $fh, "| gofmt -s > '$dir/cmp_funcs.go'");
print $fh $funcs_contents;
close $fh;
say "$dir/funcs.go generated";
say "$dir/cmp_funcs.go generated";
undef $fh;


Expand Down Expand Up @@ -246,10 +246,10 @@ sub extract_params
}
}

open($fh, "| gofmt -s > '$dir/funcs_test.go'");
open($fh, "| gofmt -s > '$dir/cmp_funcs_test.go'");
print $fh $funcs_test_contents;
close $fh;
say "$dir/funcs_test.go generated";
say "$dir/cmp_funcs_test.go generated";

#$funcs_test_contents !~ /CmpDeeply/
# or die "At least one CmpDeeply() occurrence has not been replaced!\n";
File renamed without changes.

0 comments on commit f138e00

Please sign in to comment.