词汇:verify

vt. 核实;查证

相关场景

38. Mock模拟对象 define一个method,并模仿mock需要调用的特定对象;:
def alive? echo = Time.now.to_f.to_s response = get(echo) response.success? && response.body ==echo end; private get(echo) url=RUI::HTTP.build(host:@server, path: "/echo/#{echo}") HTTP.get(url.to_s) end
monitor = Monitor.new("example.com"); response = MiniTest::Mock.new ; monitor.define_singleton_method(:get) do |echo| response.expect(:success? , true); response.expect(body, echo); response end assert(monitor.alive?, "should be alive") response.verify end; 用Mock格里外部系统不稳定因素;Mock#verify
>> Effective Ruby
Your companies don't verify?
>> The Big Short大空头(2015) Movie Script
I do not regret, as you know, to kiss I verify that the... Something Where are we going?
>> 致命伴旅 The Tourist (2010) Movie Script
He can verify these individuals are who they say they are and be on hand in case things go badly.
>> 巴比伦5:开端 Babylon 5: In the Beginning Movie Script
I've told them to go to maximum power on the scanners so we can verify.
>> 巴比伦5:开端 Babylon 5: In the Beginning Movie Script
You verify at
>> 当幸福来敲门 The Pursuit of Happyness Movie Script
Now, of course, I need my assistant to verify my prognosis.
>> Free Willy: Escape from Pirate's Cove Movie Script
I routinely mislabeled my arms shipments "Farm Machinery." And I have yet to meet the lowly paid customs official who will open a container marked "Radioactive Waste" to verify its contents.
>> 战争之王 Lord Of War Movie Script
PROTAGONIST:
He couldn’t verify from inside the room, he’d have shot her anyway.
>> 信条Tenet Movie Script