Skip to content

Commit

Permalink
remove fuzztest from the 9.12 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Dec 13, 2024
1 parent 32bcb0e commit e8dbd15
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 94 deletions.
1 change: 0 additions & 1 deletion ortools/algorithms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ cc_test(
deps = [
":n_choose_k",
"//ortools/base:dump_vars",
"//ortools/base:fuzztest",
"//ortools/base:gmock_main",
"//ortools/base:mathutil",
"//ortools/util:flat_matrix",
Expand Down
1 change: 0 additions & 1 deletion ortools/algorithms/n_choose_k_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "benchmark/benchmark.h"
#include "gtest/gtest.h"
#include "ortools/base/dump_vars.h"
//#include "ortools/base/fuzztest.h"
#include "ortools/base/gmock.h"
#include "ortools/base/mathutil.h"
#include "ortools/util/flat_matrix.h"
Expand Down
13 changes: 0 additions & 13 deletions ortools/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,6 @@ cc_library(
],
)

cc_library(
name = "fuzztest",
testonly = 1,
hdrs = ["fuzztest.h"],
deps = [
"@com_google_absl//absl/log:check",
"@com_google_fuzztest//fuzztest",
"@com_google_fuzztest//fuzztest:googletest_fixture_adapter",
"@com_google_fuzztest//fuzztest:init_fuzztest",
"@com_google_protobuf//:protobuf",
],
)

cc_library(
name = "status_matchers",
hdrs = ["status_matchers.h"],
Expand Down
55 changes: 0 additions & 55 deletions ortools/base/fuzztest.h

This file was deleted.

18 changes: 0 additions & 18 deletions ortools/sat/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3109,7 +3109,6 @@ cc_test(
":integer_base",
":util",
"//ortools/base",
"//ortools/base:fuzztest",
"//ortools/base:gmock",
"//ortools/graph:connected_components",
"//ortools/graph:strongly_connected_components",
Expand All @@ -3124,7 +3123,6 @@ cc_test(
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@com_google_benchmark//:benchmark",
"@com_google_fuzztest//fuzztest:fuzztest_gtest_main",
],
)

Expand Down Expand Up @@ -3781,22 +3779,6 @@ cc_test(
],
)

cc_test(
name = "cp_model_solver_fuzz",
size = "large",
srcs = ["cp_model_solver_fuzz.cc"],
data = glob(["fuzz_testdata/*"]),
deps = [
":cp_model_cc_proto",
":cp_model_solver",
"//ortools/base:fuzztest",
"//ortools/base:path",
"@bazel_tools//tools/cpp/runfiles",
"@com_google_absl//absl/log:check",
"@com_google_fuzztest//fuzztest:fuzztest_gtest_main",
],
)

cc_test(
name = "flaky_models_test",
size = "small",
Expand Down
6 changes: 0 additions & 6 deletions ortools/sat/diffn_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "absl/types/span.h"
#include "benchmark/benchmark.h"
#include "gtest/gtest.h"
#include "ortools/base/fuzztest.h"
#include "ortools/base/gmock.h"
#include "ortools/base/logging.h"
#include "ortools/graph/connected_components.h"
Expand Down Expand Up @@ -1134,11 +1133,6 @@ void CheckFuzzedRectangles(
<< RenderRectGraph(std::nullopt, rectangles, result);
}

FUZZ_TEST(FindPartialIntersections, CheckFuzzedRectangles)
.WithDomains(fuzztest::VectorOf(fuzztest::TupleOf(
fuzztest::Arbitrary<int64_t>(), fuzztest::NonNegative<int64_t>(),
fuzztest::Arbitrary<int64_t>(), fuzztest::NonNegative<int64_t>())));

void BM_FindRectangles(benchmark::State& state) {
absl::BitGen random;
std::vector<std::vector<RectangleInRange>> problems;
Expand Down

0 comments on commit e8dbd15

Please sign in to comment.