什么是图书馆练习程序?
what is a library exerciser program?
我正在读 "The Art of Unix Programming" 本书,发现有一句话说:
In the Unix world, libraries which are delivered as libraries should come with exerciser programs.
那么图书馆锻炼者到底是什么?
库练习器只是一个程序或一组程序,它正在测试该库(通过调用该库的一些或大部分,最好是所有 public 函数或方法)。另请阅读 unit testing.
顺便说一句,这个让库练习者的建议是恕我直言,并不特定于 Unix 世界(它也应该适用于 GNU Hurd、POSIX、VMS 甚至 Windows 系统),但通常有用对于任何软件 library. I guess it is related to modules and names in linkers. In some exotic, but interesting, programming environments (think of Lisp or Smalltalk machines, or persistent academic OSes like Grasshopper),库的概念根本不存在,或者与 Linux 类库(用 C 或 C++ 编写)相去甚远,以至于练习者可能不是同一个意思...。 ...
请注意,某些语言(Ocaml、Go、D...但不是 C11 或 C++14)可能知道模块的一些概念并且具有库的模块感知概念
我正在读 "The Art of Unix Programming" 本书,发现有一句话说:
In the Unix world, libraries which are delivered as libraries should come with exerciser programs.
那么图书馆锻炼者到底是什么?
库练习器只是一个程序或一组程序,它正在测试该库(通过调用该库的一些或大部分,最好是所有 public 函数或方法)。另请阅读 unit testing.
顺便说一句,这个让库练习者的建议是恕我直言,并不特定于 Unix 世界(它也应该适用于 GNU Hurd、POSIX、VMS 甚至 Windows 系统),但通常有用对于任何软件 library. I guess it is related to modules and names in linkers. In some exotic, but interesting, programming environments (think of Lisp or Smalltalk machines, or persistent academic OSes like Grasshopper),库的概念根本不存在,或者与 Linux 类库(用 C 或 C++ 编写)相去甚远,以至于练习者可能不是同一个意思...。 ...
请注意,某些语言(Ocaml、Go、D...但不是 C11 或 C++14)可能知道模块的一些概念并且具有库的模块感知概念