什么是“上游”?程序?
我从这里读过“上游”程序...... http://xunitpatterns.com/Back%20Door%20Manipulation.html
如果数据存储位于 SUT 外部,例如在关系数据库中,数据加载器可以是写入该数据存储的“另一个应用程序”。它会以与 SUT 大致相同的方式使用数据库,但它会从文件中获取输入,而不是从 SUT 通常获取输入的任何地方(例如其他“上游”程序)。
“上游”程序是否意味着某些程序给出除了读取文件之外,它的数据是通过网络连接还是IPC还是其他方式? 我听说过上传程序或更新某些内容,但我从未听说过“上游”程序。 您能解释一下吗,或者举一些例子吗? 提前致谢。
I've read "upstream" program from here ...
http://xunitpatterns.com/Back%20Door%20Manipulation.html
If the data store is external to the SUT, such as in a relational database, the Data Loader can be "just another application" that writes to that data store. It would use the database in much the same way as the SUT but it would get its inputs from a file rather than from wherever the SUT normally gets its inputs (e.g. other "upstream" programs.)
Does "upstream" program means some program gives its data through network connection or IPC or some other ways except reading file?
I heard upload program or update something, but I've never heard about "upstream" program.
Could you explain about it, or give some examples?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
上游程序是您自己的程序并不真正知道或关心其存在的程序。在您引用的示例中,您的应用程序了解数据加载器,但它不知道或不关心数据加载器从何处获取数据 - 上游程序。
这个比喻来自一条河流——你看到水从你身边流过,但你不知道也不关心它来自上游的哪里。好吧,也许你确实关心是否要喝它,但没有一个比喻是完美的:-)
An upstream program is one that your own program does not really know or care about the existence off. In the example you quoted, your app knows about the data loader, but it doesn't know or care about where the data loader is getting its data from - the upstream program.
The metaphor is from a river - you see the water flowing past you, but you don't know or care where upstream it is coming from. Well, maybe you do care if you are going to drink it, but then no metaphor is perfect :-)