当nose检查python测试模块的内部时,它采用在选择测试模块时使用的正则表达式,收集与这个正则表达式匹配的函数和类。
When nose looks inside of a Python test module, it collects functions and classes that match the same regular expression that it USES for choosing test modules.
提出正确的正则表达式,然后使用matcher类的结果,这就是这个模式匹配库要做的全部工作。
Coming up with the right regular expression and then working with the results of the Matcher class is really all there is to the library.
对于大多数曾经使用过类 Unix系统的程序设计人员来说应该熟悉正则表达式。
Regular expressions should be familiar to most programmers who have ever used a Unix-like system.
由于用户已请求编译表达式,编译器使用反射发出将正则表达式编译为自定义扫描仪类。
The compiler compiles the regular expression into a custom scanner class using reflection emit because the user has requested that the expression be compiled.
由于用户已请求编译表达式,编译器使用反射发出将正则表达式编译为自定义扫描仪类。
The compiler compiles the regular expression into a custom scanner class using reflection emit because the user has requested that the expression be compiled.
应用推荐