[FileCheck, unittest] Improve readability of ExpressionFormat
authorThomas Preud'homme <thomasp@graphcore.ai>
Thu, 18 Jun 2020 18:48:55 +0000 (19:48 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Fri, 19 Jun 2020 13:47:37 +0000 (14:47 +0100)
commitcd2553de77f2c3206deaa261a15cc7520ff2ff56
tree319980ee65d4b09badc35eb7e2ff2c8de59244ea
parent129ab77384b3685e1b16345875ead19f886f007e
[FileCheck, unittest] Improve readability of ExpressionFormat

Summary:
Factor out repetetitive code into helper function and split massive
ExpressionFormat method test into separate test for each method,
removing dead code in passing. Also add a MinInt64 and MaxInt64 checks
when testing getMatchingString.

Reviewers: jhenderson, jdenny, probinson, grimar, arichardson

Reviewed By: jhenderson, grimar

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82132
llvm/unittests/Support/FileCheckTest.cpp