| 144 | } |
| 145 | |
| 146 | bool IsPrivateIpv4Impl(const StringValue& addr) { |
| 147 | // Implementation for demonstration, this is simple but incomplete and |
| 148 | // brittle. |
| 149 | std::string buf; |
| 150 | return absl::StartsWith(addr.ToStringView(&buf), "192.168.") || |
| 151 | absl::StartsWith(addr.ToStringView(&buf), "10."); |
| 152 | } |
| 153 | |
| 154 | absl::StatusOr<std::unique_ptr<Runtime>> ConfigureRuntimeImpl( |
| 155 | bool resolve_references, Options evaluation_options) { |
nothing calls this directly
no test coverage detected