Home
last modified time | relevance | path

Searched refs:TimeConsts (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/ruby/spec/
Dtime_consts_spec.rb17 TimeConsts = GRPC::Core::TimeConsts constant
19 describe TimeConsts do describe
25 expect(TimeConsts.constants.collect.sort).to eq(@known_consts)
30 m = TimeConsts
40 expect { TimeConsts.from_relative_time(Object.new) }.to raise_error
44 m = TimeConsts
47 expect(TimeConsts.from_relative_time(const)).to be(const)
52 expect(TimeConsts.from_relative_time(0)).to eq(TimeConsts::ZERO)
56 expect(TimeConsts.from_relative_time(nil)).to eq(TimeConsts::ZERO)
61 y = TimeConsts.from_relative_time(t)
[all …]
/external/grpc-grpc/src/ruby/lib/grpc/core/
Dtime_consts.rb23 module TimeConsts module