resource_loader_test.cc
imports tensorflow/core/platform/env.himports tensorflow/core/platform/logging.h
SHA-256baf092c42619087a51b9889f1d1ee756afe8777a88a438ae5829867718b82acb
MaleculeMd₂(In₆Pa)
Evidence
1/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include "tensorflow/core/platform/resource_loader.h"
17
18#include "tensorflow/core/platform/env.h"
19#include "tensorflow/core/platform/logging.h"
20#include "tensorflow/core/platform/path.h"
21#include "tensorflow/core/platform/status.h"
22#include "tensorflow/core/platform/test.h"
23
24namespace tensorflow {
⋯4 lines
31:29… dsAndOpensFile) {
32 std::string filepath = GetDataDependencyFilepath(DataDependencyPath());
33 absl::Status s = Env::Default()->FileExists(filepath);
34 EXPECT_TRUE(s.ok()) << "No file found at this location: " << filepath;
35}
36
37} // namespace
38} // namespace tensorflow