mock是什么意思,mock中文翻譯,mock發(fā)音、用法及例句
?mock
mock發(fā)音
英:[m?k] 美:[mɑ:k]
英: 美:
mock中文意思翻譯
adj.假的, 偽裝的, 模擬的
v.嘲弄, 嘲笑, 模仿
n.嘲笑, 模仿, 戲弄
mock詞形變化
動(dòng)詞過(guò)去分詞: mocked | 副詞: mockingly | 動(dòng)詞第三人稱(chēng)單數: mocks | 名詞: mocker | 動(dòng)詞過(guò)去式: mocked | 動(dòng)詞現在分詞: mocking |
mock短語(yǔ)詞組
mock at
1. 嘲弄
They mocked at his timidity.
他們嘲弄他的膽怯。
mock習慣用語(yǔ)
mock常見(jiàn)例句
1 、His bully make a mock of all the fine thing he say about kindness to others.───他那恃強欺弱的行為對于他所說(shuō)的待人友善的漂亮言詞是一個(gè)嘲弄。
2 、Harry! You mock at everything, and then suggest the most serious tragedies.───哈里!你對隨便什么事情都要冷嘲熱諷,然后設想可悲的結局。
3 、In reality they are brutally effective warriors who practice their skills daily in tournaments and mock fights.───同時(shí),他們亦為精悍的勇士,在無(wú)數競技比賽和比武決斗中鍛煉得驍勇善戰。
4 、To spare their king, the Mesopotamians used the idea of a "mock" king.───為了挽救他們的國王的生命,人們創(chuàng )造了一個(gè)“假”國王。
5 、Many have dark patches in their fur, although some supremacists mock any Get who does not have a pure coat.───不少傳人的狼形有著(zhù)暗色的色斑,有些自大的家伙以此嘲笑傳人連純潔的衣服都沒(méi)有。
6 、"But now they mock me, men younger than I, whose fathers I would have disdained to put with my sheep dogs.───但如今,比我年少的人戲笑我。其人之父我曾藐視,不肯安在看守我羊群的狗中。
7 、I believe I warned you about mocking me.─── 我想我警告過(guò)你嘲笑我是什么后果
8 、A kangaroo court is an illegal mock court that often takes the law into its own hands.───“非正規法庭”是非法的模擬法庭,這種法庭常常草菅人命。
9 、Join Kulvir Singh Bhogal as he walks you through the process of creating a trigger used in a mock banking scenario.───和Kulvir Singh Bhogal一起,他將介紹在虛擬銀行場(chǎng)景中創(chuàng )建觸發(fā)器的全過(guò)程。
10 、Those that be near, and those that be far from thee, shall mock thee, which art infamous and much vexed.───你這名臭,多亂的城阿,那些離你近,離你遠的都必譏誚你。
11 、Let not the sword-blade mock its handle for being blunt .───不要讓刀鋒譏笑它柄子的拙鈍。
12 、You both love Hermia, and now you both mock me!───你們都愛(ài)著(zhù)荷米亞,而現在你們也一同嘲笑我!
13 、"Don't mock me," smiled Chin.───“不要挖苦我罷,”琴帶笑地說(shuō)。
14 、Those who sit at the gate mock me, and I am the song of the drunkards.───12坐在城門(mén)口的談?wù)撐?。酒徒也以我為歌曲?/p>
15 、Will your idle talk reduce men to silence? Will no one rebuke you when you mock?───你夸大的話(huà)豈能使人不作聲嗎?你戲笑的時(shí)候豈沒(méi)有人叫你害羞嗎?
16 、"Behold, he has brought in a Hebrew to us to mock us.───“你們看!他給我們帶來(lái)的希伯來(lái)人竟敢調戲我??!
17 、What are Mock Objects Good For?───冒名對象擅長(cháng)做什么?
18 、Mock detention--a documentation verification process to confirm factory capability in compilation of detention package?───一個(gè)文件確認程序以確定工廠(chǎng)生產(chǎn)封閉式袋子的能力?
19 、"Turn a somersault in the sea," cried the mock turtle.───“在海里翻一個(gè)跟斗?”假海龜叫道。
20 、He assumed a mock extravagance.───他擺出一副大言不慚的樣子。
21 、To avoid appearing ignorant, don't mock what you don't fully understand.───不要否定那些你并不十分理解的東西,以免顯得無(wú)知。
22 、"I beg your pardon," said Rhett with mock humility.───"請原諒,"瑞德用假意謙卑的口吻說(shuō)。
23 、Is it good that he should search you out? or as one man mocketh another, do ye so mock him?───9他查出你們來(lái),這豈是好嗎。人欺哄人,你們也要照樣欺哄他嗎。
24 、Used to express surprise or mock astonishment.───哦嗬,啊哈,哎喲用以表示驚奇或假裝的驚訝。
25 、You can mock, but at least I'm willing to have a try!───你可以嘲笑我,但我至少愿意試一試。
26 、Or whatever. I'm not mocking your people.─── 其實(shí)沒(méi)什么 我不是在嘲笑你們那的人
27 、Dedicate one night prior to the interview to a mock QandA.───事先拿出一個(gè)晚上以問(wèn)答的方式做模擬面試。
28 、The artist still use the commodity to mock the reality, and with the note to satirize the commercialization of art.───利用現成品對現實(shí)進(jìn)行揶揄的表達方式仍被藝術(shù)家采用,并總是冠以反諷藝術(shù)商品化的意圖。
29 、A worker maneuvering a gurney clears her path and lifts his eyebrows in mock amazement.───一位工作人員推著(zhù)一架輪床來(lái)為她開(kāi)路,然后假裝驚異地挑起他的眼眉。
30 、Endo-Testing: Unit Testing with Mock Objects.───介紹了術(shù)語(yǔ)模仿對象。
31 、The unbelievers are not only ridicule the Israeli, also mock God's name.───不信的人不僅嘲笑以色列人,也嘲笑上帝的名。
32 、How long will the enemy mock you, O God? Will the foe revile your name forever?───10神阿,敵人辱罵要到幾時(shí)呢?仇敵褻瀆你的名,要到永遠嗎?
33 、Laic err thing cries " be stupid " mock by the person.───凡人做錯事叫“犯傻”遭人恥笑。
34 、His rivals often mock him for flip-flopping.───他的對手經(jīng)常模仿他的朝秦暮楚。
35 、They often mock at my broken English.───他們常常取笑我的蹩腳英語(yǔ)。
36 、"Back to land again, and-that's all the first figure," said the mock turtle.───“又回到陸地上--這就是第一節的全部”,假海龜說(shuō)。
37 、Others began to give gag gifts on the day to mock the foolishness of those who continued to celebrate the new year on April 1.───另一些人開(kāi)始在這一天送惡作劇的禮物來(lái)取笑那些繼續在4月1日慶祝新年的人。
38 、Who will mock him and spit on him, flog him and kill him. Three days later he will rise.───他們要戲弄他,吐唾沫在他臉上,鞭打他,殺害他。過(guò)了三天,他要復活。
39 、Shame on you for mocking the poorlyendowed.─── 我鄙視你 居然嘲笑有生理缺陷的人
40 、Stop making a mock and a jeer out of other people's business.───停止取笑別人的事情。
41 、Demonstrators launched a mock invasion of Fort Lewis on July 15.───七月十五日,示威群眾向路易斯堡發(fā)動(dòng)一次模擬的入侵。
42 、His bullying made a mock of all the fine things he said about kindness to others.───他那恃強欺弱的行為對於他所說(shuō)的待人友善的漂亮言詞是一個(gè)嘲弄。
43 、You have made us a source of contention to our neighbors, and our enemies mock us.───你使鄰邦因我們紛爭,我們的仇敵彼此戲13笑。
44 、And it mocks me from the cupboard when I'm home.─── 每次回家就看著(zhù)櫥柜上的杯子嘲笑我
45 、"Dost thou mock me now?" said the minister.───“你在拿我開(kāi)心嗎?”牧師說(shuō)。
46 、Those who are near and those who are far away will mock you, O infamous city, full of turmoil.───你這名臭,多亂的城阿,那些離你近,離你遠的都必譏誚你。
47 、A good chapter on Mock Objects.───書(shū)中有一章對模仿對象進(jìn)行了精彩論述。
48 、Mock not the fallen, for slippery is the road ahead of you.───不要嘲笑摔倒的人,你前面的路還有更光滑的。
49 、Let not ambition mock their useful toil.───不要讓雄心勃勃的人嘲笑他們的有益勞動(dòng)吧。
50 、"Was that disrespect for your leader I heard?" he teased in a mock growl.───"我聽(tīng)到的你領(lǐng)袖的那一個(gè)不敬是"? 他在一個(gè)假的吠聲中欺負。
51 、Clinton, he reported with a tone of mock confidence, was at a prayer breakfast across town with religions leaders.───他裝出很肯定的語(yǔ)氣報道說(shuō),克林頓就在對面城鎮與宗教領(lǐng)袖舉行祈禱早餐會(huì )。
52 、So they went up to the Mock Turtle, who looked at them with large eyes full of tears, but said nothing.───他們走近了素甲魚(yú),它用飽含著(zhù)眼淚的大眼睛望著(zhù)他們,可是一句話(huà)也不講。
53 、Although he failed in the maths test, it was wrong to mock his efforts.───"雖然他的數學(xué)沒(méi)有考及格,但是嘲笑他的努力是不對的。"模仿以嘲弄。
54 、First, I need to mock up a description of what I might want to say about the data in.───中的數據,我需要模擬出一個(gè)描述,記錄下對于這些數據我可能要說(shuō)的內容。
55 、There is no need to wait. There is no need to recline and rest in mock desperation. Complaining does nothing.───不要再等下去,更不要以絕望無(wú)助的姿態(tài)坐視不理,怨天尤人并不能解決問(wèn)題。
56 、Had he asked any friends to grill him in a mock interview?───他可曾請朋友向他提問(wèn),對他進(jìn)行模擬面試?
57 、Don't you mock me. I'm holding a firearm.─── 你居然敢笑我 我手里拿著(zhù)**呢
58 、Why did you paint it? It will mock me some day-mock me horribly!───你為什么要畫(huà)這幅像呢?將來(lái)它會(huì )揶揄我--狠狠地揶揄我。
59 、A mock scepter carried by a court jester.───丑角手杖古時(shí)宮廷小丑所持的模擬權杖
60 、You shouldn't mock at other people's religious beliefs.───你不應該嘲笑別人的信仰。
61 、I'm not mocking these. I got respect.─── 我沒(méi)有嘲笑您的榮譽(yù) 我很尊敬呢
62 、"Seldom he smiles, and smiles in such a sort/As if he mock'd himself, and scorn'd his spirit" (Shakespeare).───“他很少笑,笑時(shí)又以這樣的神態(tài)/好象是在嘲笑自己并看不起自己的靈魂” (莎士比亞)。
63 、He frowned with mock severity.───他沉下臉來(lái),裝出一副嚴厲的樣子。
64 、He will be handed over to the Gentiles. They will mock him, insult him, spit on him, flog him and kill him.───他將要被交給外邦人,他們要戲弄他,凌辱他,吐唾沫在他臉上。
65 、Any words and deeds that underestimate netizen intelligence quotient can suffer only disgustful and mock.───任何低估網(wǎng)民智商的言行只會(huì )遭到唾棄和恥笑。
66 、It's rude to mock at a foreign student's mistakes in speaking English.───嘲笑外國學(xué)生在講英語(yǔ)時(shí)所犯的錯誤是不禮貌的。
67 、NIV]' And now their sons mock me in song; I have become a byword among them.───[和合]“現在這些人以我為11歌曲,以我為12笑談。
68 、And they will mock Him and spit at Him and scourge Him, and they will kill Him. And after three days He will rise.───他們要戲弄他,向他吐唾沫,鞭打他,殺害他,過(guò)了三天,他必復活。
69 、It is a mark of depravity to make a mock of good advice and kind rebuke.───嘲笑別人的忠告和善意指責是墮落的標志。
70 、Emotional vampires include people who put you down,criticize you,and mock your aspirations.───喜歡打擊別人的家伙包括那些讓你感到自慚形穢的人,責備你的人和嘲笑你的追求的人。
71 、So, of course, I'm being mocked by a mime.─── 所以耍我的是自然啞劇演員
72 、They mock and wickedly speak of oppression; They speak loftily.───8他們譏笑人,憑惡意說(shuō)欺壓人的話(huà);他們說(shuō)話(huà)高傲。
73 、He arched his eyebrows in mock surprise.───他假裝吃驚地聳起雙眉。
74 、He is in distress. We shouldn't mock him.───他正在落難之時(shí),我們不應該對他冷語(yǔ)相加。
75 、I became the laughingstock of all my people; they mock me in song all day long.───14我成了眾民的笑話(huà).他們終日以我為歌曲。
76 、He went to church only to mock.───他到教堂去只是為了嘲弄宗教。
77 、And deliver Him to the Gentiles to mock and to scourge and to crucify Him, and on the third day He will be raised.───又要把他交給外邦人去戲弄,鞭打,并釘十字架,第三日他必復活。
78 、Skin of a few canzonet still is surrounded even come up mock I, flavor is not really in my heart.───幾個(gè)小調皮甚至還圍上來(lái)恥笑我,我心里真不是滋味。
79 、Don't laugh or mock at passengers.───不準對旅客、駕乘人員譏笑、諷刺。
80 、What did you get in the mock?───你的模擬考試得了多少分?
81 、He had no religious beliefs, and he went to church only to mock.───他沒(méi)有宗教信仰,只是為了取笑他才去教堂。
82 、You may face imiunderstanding, mock, insult and so on.───你會(huì )招來(lái)不解、嘲笑、侮辱等等。
83 、They've mocked you, humiliated you, betrayed you.─── 他們嘲笑你 羞辱你 背叛你
84 、The army training exercises ended with a mock battle.───軍事訓練演習以一場(chǎng)模擬戰結束。
85 、Watch how they mock up a chain of hilarious and unexpected turmoil!───且看這對新拍檔如何幻化出一連串搞笑和微妙的愛(ài)情故事!
86 、To mock such a serious man as Don Guillermo is beyond all right.───作弄堂·吉列爾莫這樣的正經(jīng)人,真正不公道。
87 、She yelled out in mock disbelief.───假裝不相信。
88 、"The housecat may mock the tiger", said the master, "but doing so will not make his purr into a roar".───"家貓也能欺負老虎",無(wú)名師說(shuō),"但是貓叫永遠比不過(guò)虎吼.
89 、I must tell you that they have been mocking you.─── 但我必須告訴你他們一直在嘲笑你
90 、This is why they mock you at book club.─── 難怪讀書(shū)俱樂(lè )部的人嘲笑你
什么是 Mock 測試
作為動(dòng)詞,Mock 是模擬、模仿的意思。
作為名詞,Mock 是能夠模仿真實(shí)對象行為的模擬對象。
那么,在軟件測試中,Mock 所模擬的對象是什么呢?
模擬的是 SUT(System Under Test:被測系統) 的依賴(lài),而不是其本身。
比如,我要測試 A,但 A 依賴(lài) B,要模擬的對象就是 B。
為什么要模擬 B 呢?
提高 A 的測試覆蓋率: 通過(guò) Mock 模擬 B 返回的正常和異常的結果,使用 A 的測試更充分。
避免 B 的因素對 A 產(chǎn)生影響: 當 B 因各種原因無(wú)法正常使用時(shí),導致 A 無(wú)法測試。
提高 A 的測試效率: B 的真實(shí)行為可能很慢,但模擬可以很快。
Mock 的兩大功能:
記錄真實(shí)的調用信息
生成模擬的返回信息
使用 Mock 的問(wèn)題是什么?
可能導致問(wèn)題遺漏: 畢竟是模擬的,是理想可預見(jiàn)的情況,真實(shí)的情況可能更復雜。
可能導致維護成本變高: 接口變更 Mock 用例要跟著(zhù)改,改錯和漏改都可能出問(wèn)題。
常見(jiàn)的 Mock 類(lèi)型:
方法級別: Mock的對象是一個(gè)函數調用,例如:獲取系統環(huán)境變量。
類(lèi)級別: Mock 的對象是一個(gè)類(lèi),例如:一個(gè) HTTP server。
接口級別: Mock 的對象是一個(gè) API 接口。
服務(wù)級別: Mock 的對象是整個(gè)服務(wù)。
使用 Mock 做接口測試時(shí),一般分二步:
1. 打樁: 創(chuàng )建 Mock 樁,指定 API 請求內容及其映射的響應內容。
2 . 調樁: 被測服務(wù)來(lái)請求 Mock 樁并接收 Mock 響應。
在這二步之間還有一個(gè) Mock 樁的注入 , 啥是 Mock 注入?
Mock 的本質(zhì)就是用模擬樁來(lái)替換真實(shí)的依賴(lài)。所謂 Mock 樁注入 就是 阻斷被測服務(wù)與真實(shí)服務(wù)之間的鏈路,建立被測服務(wù)與 Mock 之間的鏈路過(guò)程。
如下圖所示:
常見(jiàn)的方式包括但不限于以下五種:
API 請求構造
客戶(hù)端 Mock:在被測服務(wù) 內部 工作,直接**被測服務(wù)的 API 請求方法,直接從方法內部返回預定義的 Mock 響應。
服務(wù)端 Mock:在被測服務(wù) 外部 工作,作為 HTTP 服務(wù)器接收被測服務(wù)發(fā)送的 API 請求,并返回預定義的 Mock 響應。
本地配置:
對于服務(wù)端 Mock,打樁之后會(huì )生成唯一的 Mock 樁地址,被測服務(wù)提供一個(gè)依賴(lài)服務(wù)地址配置項,在需要使用 Mock 時(shí)將依賴(lài)服務(wù)地址修改成 Mock 地址。
配置中心
對于服務(wù)端 Mock,為了避免修改依賴(lài)服務(wù)地址配置項導致被測服務(wù)重啟,可以采用配置中心存儲和管理依賴(lài)服務(wù)地址配置,或者使用注冊中心記錄服務(wù)與服務(wù)地址的映射關(guān)系。
反向**
在微服務(wù)架構下,被測服務(wù)與依賴(lài)服務(wù)之間可能不是直連的,而是經(jīng)過(guò)了一層反向**,例如 API 網(wǎng)關(guān)。在這種情況下,被測服務(wù)是通過(guò)調用 API 網(wǎng)關(guān)來(lái)間接調用依賴(lài)服務(wù)的接口。
前向**
服務(wù)端 Mock 除了作為 HTTP 服務(wù)器,還可以兼備 HTTP **的功能,這種架構又叫做 Mock **。
對比:
常用 Mock 工具:
單元測試級別:
easymock、jMock、Mockito、Unitils Mock、PowerMock、JMockit..
接口測試級別
Wiremock、Mockserver、Moco、Mock.js、RAP...
mock的形容詞形式
Mock本身有形容詞的含義。
基礎詞性
1、動(dòng)詞v.嘲笑;譏笑;嘲弄;使顯得徒勞;使顯得可笑;嘲諷(或輕蔑)地模仿;仿效
2、形容詞adj.仿制的;模擬的;演習的
3、名詞n.模擬考試;嘲笑對象;笑柄
短語(yǔ)搭配
mock sun 幻日;假日
mock turtle soup 假甲魚(yú)湯
mock moon 幻月;假月
make a mock of 嘲弄;嘲笑
make mock of 嘲弄;嘲笑
雙語(yǔ)例句
1、Regular people mock it but accept it.
普通人嘲笑它,但也接受它。
2、Schools will begin to set mock tests.
學(xué)校將開(kāi)始模擬考試了。
3、Stop making a mock of other people's business.
別嘲笑他人的事了。
4、A mock-up of the following day's front page.
第二天頭版的版面設計。
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。