What does “to stub” mean in programming?

后端 未结 10 1019
盖世英雄少女心
盖世英雄少女心 2020-12-12 10:06

For example, what does it mean in this quote?

Integrating with an external API is almost a guarantee in any modern web app. To effectively test such i

10条回答
  •  难免孤独
    2020-12-12 10:20

    RPC Stubs

    • Basically, a client-side stub is a procedure that looks to the client as if it were a callable server procedure.
    • A server-side stub looks to the server as if it's a calling client.
    • The client program thinks it is calling the server; in fact, it's calling the client stub.
    • The server program thinks it's called by the client; in fact, it's called by the server stub.
    • The stubs send messages to each other to make the RPC happen.

    Source

提交回复
热议问题