Skip to content

Commit

Permalink
#Rename shard_reader.* -> corpus_io.* (NFC)
Browse files Browse the repository at this point in the history
Pre-work before adding more corpus I/O APIs (in particular, moving the ones already implemented ad-hoc in other sources, such as distill.cc).

PiperOrigin-RevId: 597934845
  • Loading branch information
ussuri authored and copybara-github committed Mar 15, 2024
1 parent fa76bcb commit bcca6e2
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions centipede/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ cc_library(
":binary_info",
":control_flow",
":corpus",
":corpus_io",
":coverage",
":defs",
":feature",
":logging",
":pc_info",
":remote_file",
":shard_reader",
":workdir",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
Expand Down Expand Up @@ -750,10 +750,10 @@ cc_library(
)

cc_library(
name = "shard_reader",
srcs = ["shard_reader.cc"],
hdrs = ["shard_reader.h"],
# TODO(kcc): move shard_reader test from testing/centipede_test.cc into a dedicated test.
name = "corpus_io",
srcs = ["corpus_io.cc"],
hdrs = ["corpus_io.h"],
# TODO(kcc): move corpus_io test from testing/centipede_test.cc into a dedicated test.
deps = [
":blob_file",
":defs",
Expand Down Expand Up @@ -811,6 +811,7 @@ cc_library(
":command",
":control_flow",
":corpus",
":corpus_io",
":coverage",
":defs",
":early_exit",
Expand All @@ -824,7 +825,6 @@ cc_library(
":runner_result",
":rusage_profiler",
":rusage_stats",
":shard_reader",
":stats",
":symbol_table",
":util",
Expand Down Expand Up @@ -913,6 +913,7 @@ cc_library(
hdrs = ["distill.h"],
deps = [
":blob_file",
":corpus_io",
":defs",
":environment",
":feature",
Expand All @@ -922,7 +923,6 @@ cc_library(
":resource_pool",
":rusage_profiler",
":rusage_stats",
":shard_reader",
":thread_pool",
":util",
":workdir",
Expand Down Expand Up @@ -1121,13 +1121,13 @@ cc_library(
hdrs = ["seed_corpus_maker_lib.h"],
deps = [
":blob_file",
":corpus_io",
":defs",
":feature",
":logging",
":remote_file",
":rusage_profiler",
":seed_corpus_config_cc_proto",
":shard_reader",
":thread_pool",
":util",
":workdir",
Expand Down Expand Up @@ -1349,13 +1349,13 @@ cc_test(
srcs = ["distill_test.cc"],
deps = [
":blob_file",
":corpus_io",
":defs",
":distill",
":environment",
":feature",
":resource_pool",
":rusage_stats",
":shard_reader",
":test_util",
":util",
":workdir",
Expand Down Expand Up @@ -1724,13 +1724,13 @@ cc_test(
":centipede_default_callbacks",
":centipede_interface",
":corpus",
":corpus_io",
":defs",
":environment",
":feature",
":logging",
":mutation_input",
":runner_result",
":shard_reader",
":test_util",
":util",
":workdir",
Expand Down
2 changes: 1 addition & 1 deletion centipede/analyze_corpora.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
#include "./centipede/binary_info.h"
#include "./centipede/control_flow.h"
#include "./centipede/corpus.h"
#include "./centipede/corpus_io.h"
#include "./centipede/coverage.h"
#include "./centipede/defs.h"
#include "./centipede/feature.h"
#include "./centipede/logging.h"
#include "./centipede/pc_info.h"
#include "./centipede/remote_file.h"
#include "./centipede/shard_reader.h"
#include "./centipede/workdir.h"

namespace centipede {
Expand Down
2 changes: 1 addition & 1 deletion centipede/centipede.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
#include "./centipede/centipede_callbacks.h"
#include "./centipede/command.h"
#include "./centipede/control_flow.h"
#include "./centipede/corpus_io.h"
#include "./centipede/coverage.h"
#include "./centipede/defs.h"
#include "./centipede/early_exit.h"
Expand All @@ -91,7 +92,6 @@
#include "./centipede/runner_result.h"
#include "./centipede/rusage_profiler.h"
#include "./centipede/rusage_stats.h"
#include "./centipede/shard_reader.h"
#include "./centipede/stats.h"
#include "./centipede/util.h"
#include "./centipede/workdir.h"
Expand Down
2 changes: 1 addition & 1 deletion centipede/centipede_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
#include "./centipede/centipede_default_callbacks.h"
#include "./centipede/centipede_interface.h"
#include "./centipede/corpus.h"
#include "./centipede/corpus_io.h"
#include "./centipede/defs.h"
#include "./centipede/environment.h"
#include "./centipede/feature.h"
#include "./centipede/logging.h"
#include "./centipede/mutation_input.h"
#include "./centipede/runner_result.h"
#include "./centipede/shard_reader.h"
#include "./centipede/test_util.h"
#include "./centipede/util.h"
#include "./centipede/workdir.h"
Expand Down
2 changes: 1 addition & 1 deletion centipede/shard_reader.cc → centipede/corpus_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "./centipede/shard_reader.h"
#include "./centipede/corpus_io.h"

#include <functional>
#include <memory>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion centipede/distill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "absl/synchronization/mutex.h"
#include "absl/time/time.h"
#include "./centipede/blob_file.h"
#include "./centipede/corpus_io.h"
#include "./centipede/defs.h"
#include "./centipede/environment.h"
#include "./centipede/feature.h"
Expand All @@ -43,7 +44,6 @@
#include "./centipede/resource_pool.h"
#include "./centipede/rusage_profiler.h"
#include "./centipede/rusage_stats.h"
#include "./centipede/shard_reader.h"
#include "./centipede/thread_pool.h"
#include "./centipede/util.h"
#include "./centipede/workdir.h"
Expand Down
2 changes: 1 addition & 1 deletion centipede/distill_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
#include "absl/flags/reflection.h"
#include "absl/log/check.h"
#include "./centipede/blob_file.h"
#include "./centipede/corpus_io.h"
#include "./centipede/defs.h"
#include "./centipede/environment.h"
#include "./centipede/feature.h"
#include "./centipede/resource_pool.h"
#include "./centipede/rusage_stats.h"
#include "./centipede/shard_reader.h"
#include "./centipede/test_util.h"
#include "./centipede/util.h"
#include "./centipede/workdir.h"
Expand Down
2 changes: 1 addition & 1 deletion centipede/seed_corpus_maker_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
#include "absl/strings/str_replace.h"
#include "absl/time/time.h"
#include "./centipede/blob_file.h"
#include "./centipede/corpus_io.h"
#include "./centipede/defs.h"
#include "./centipede/feature.h"
#include "./centipede/logging.h"
#include "./centipede/remote_file.h"
#include "./centipede/rusage_profiler.h"
#include "./centipede/seed_corpus_config.pb.h"
#include "./centipede/shard_reader.h"
#include "./centipede/thread_pool.h"
#include "./centipede/util.h"
#include "./centipede/workdir.h"
Expand Down

0 comments on commit bcca6e2

Please sign in to comment.