{"repo":"google/effcee","free":true,"listed":false,"github":"https://github.com/google/effcee","clone":"git clone https://github.com/google/effcee.git","description":"Effcee is a C++ library for stateful pattern matching of strings, inspired by LLVM's FileCheck","language":"C++","stars":104,"topics":["regular-expression","testing-tools","string-matching"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Effcee Effcee is a C++ library for stateful pattern matching of strings, inspired by LLVM's [FileCheck][FileCheck] command. Effcee: - Is a library, so it can be used for quickly running tests in your own process. - Is largely compatible with FileCheck, so tests and test-writing skills are transferable. - Has few dependencies: - The C++11 standard library, and - [RE2][RE2] for regular expression matching. - [Abseil][Abseil] utilities for C++ (via RE2). Example The following is from examples/main.cc: For more examples, see the matching tests in effcee/match test.cc. Status Effcee is mature enough to be relied upon by third party projects, but could be improved. What works: All check types: CHECK, CHECK-NEXT, CHECK-SAME, CHECK-DAG, CHECK-LABEL, CHECK-NOT. Check strings can contain: fixed strings regular expressions variable definitions and uses Setting a custom check prefix. Accurate and helpful reporting of match failures. What is left to do: Add an option to define shorthands for regular expressions. For example, you could express that if the string %% appears where a regular expression is expected, then it expands to the regular expression for a local identifier in LLVM assembly language, i.e. %[-a-zA-Z$. ][-a-zA-Z$. 0-9] . This enables you to write precise tests with less fuss. Better error reporting for failure to parse the checks list. Write a check language reference and tutorial. What is left to do, but lower priority: Match full lines. Strict whitespace. Implicit check-","default_branch":null,"files":null,"tree":[],"storefront":"/r/google","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google/effcee/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}