记作业>英语词典>stubbing翻译和用法

stubbing

英 [ˈstʌbɪŋ]

美 [ˈstʌbɪŋ]

v.  脚趾不小心踢到…上
stub的现在分词

复数:stubbings 

柯林斯词典

  • N-COUNT 残根;残端;(铅笔)头;(烟)蒂
    Thestubof a cigarette or a pencil is the last short piece of it which remains when the rest has been used.
    1. He pulled the stub of a pencil from behind his ear.
      他从耳后拿出一小段铅笔头。
    2. ...an ashtray of cigarette stubs.
      一烟缸的烟蒂
  • N-COUNT 票根;存根
    A ticketstubis the part that you keep when you go in to watch a performance.
    1. Fans who still have their original ticket stubs should contact Sheffield Arena by July 3.
      仍保留原始票根的球迷请于 7 月 3 号前和谢菲尔德体育馆联系。
  • (支票的)存根
    A chequestubis the small part that you keep as a record of what you have paid.
    1. VERB 不小心踢到(脚趾)
      If youstubyourtoe, you hurt it by accidentally kicking something.
      1. I stubbed my toes against a table leg.
        我不小心踢到桌子腿上。

    双语例句

    • Many developers confuse the ideas behind stubbing and mocking.
      很多开发人员对stub和mock这两个概念都不是很清楚,很容易混淆。
    • In fact, Denny said," they seem to be stubbing their toes on life's vicissitudes, just like we all do. "
      其实,丹尼说,“他们似乎就和我们一样,在坎坷人生中遭遇挫折。”
    • Support for stubbing of method calls and properties access
      支持方法调用和属性访问桩
    • Testing classes with a high fan-out score without any stubbing will allow you to test a large percentage of the code quickly.
      具有高分散数且没有任何存根的测试类允许你快速地测试大量代码。
    • In my home, the most important light is not the large chandelier in our dining room but the little night light that keeps me from stubbing my toe when I get up at night.
      在我的家里,最重要的灯不是我餐厅里的大吊灯,而是在我深夜起来让我不被绊到脚的小夜灯。
    • If you have your own JNI libraries, try stubbing them out entirely one at a time to determine if they are causing the leak.
      如果您有自己的JNI库,尝试完全禁用它们,以确定它们是否会造成泄漏。
    • Greg: Oh no! Look here, people have been stubbing their cigarettes out on the sofa.
      格雷哥:哎呦,看这里,有人在沙发上把烟头按熄。
    • Stubbing simply replaces a real-world implementation with a simpler implementation.
      stub即是用更简单的实现代替真实世界中的实现。
    • By creating the UI first, and stubbing out or mocking any classes it needs, we can quickly get feedback on whether the UI matches the business's expectations.
      通过首先创建UI,并将所有它需要的类打桩,我们可以快速获得UI是否满足商业需求的反馈。
    • Notice that by stubbing out the DOM elements we can test the side effects of the render method without actually doing anything that could invalidate other tests within the test page.
      请注意通过使用DOM元素的stub,我们可以测试render方法的结果,而不必实际去做任何事情,这些事情可能导致测试页面的其他测试失效。