mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
unit: modernise test_util
This commit is contained in:
committed by
Matthew Barr
parent
1376f3849a
commit
bc7da2807a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -29,13 +29,13 @@
|
||||
#ifndef TEST_UTIL_H
|
||||
#define TEST_UTIL_H
|
||||
|
||||
#include "hs.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "hs.h"
|
||||
|
||||
#ifndef UNUSED
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#define UNUSED
|
||||
@@ -56,8 +56,7 @@ struct MatchRecord {
|
||||
std::ostream &operator<<(std::ostream &o, const MatchRecord &m);
|
||||
|
||||
struct CallBackContext {
|
||||
CallBackContext() : halt(false) {}
|
||||
bool halt;
|
||||
bool halt = false;
|
||||
std::vector<MatchRecord> matches;
|
||||
|
||||
void clear() {
|
||||
|
Reference in New Issue
Block a user