push
github
95 of 98 new or added lines in 10 files covered. (96.94%)
1075 of 1078 relevant lines covered (99.72%)
161.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
|
|
require_relative "validator/type"
|
4✔ |
| 4 |
|
|
|
|
class TableSync::Utils::Schema |
4✔ |
|
|
class Validator |
4✔ |
|
|
attr_reader :type
|
4✔ |
| 8 |
|
|
|
|
def initialize(type) |
4✔ |
|
|
@type = type
|
2,816✔ |
| 11 |
end
|
|
| 12 |
|
|
|
|
def validate(value) |
4✔ |
|
|
type.validate(value) |
872✔ |
| 15 |
end
|
|
| 16 |
|
|
|
|
def inspect |
4✔ |
|
NEW
|
type.inspect |
× |
| 19 |
end
|
|
| 20 |
end
|
|
| 21 |
end
|