methods.test

Clone Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
improve spelling

  1. … 10 more files in changeset.
Bug fix: include alias to object in "info methods -path"

Previously, it was not possible to define an alias to an object for

NaviServer, since it was not returned by "info methods -path" and

was therefore not included in the blueprint.

Extended regression test.

  1. … 4 more files in changeset.
improve spelling: move closer to the linux documentation recommendations

  1. … 19 more files in changeset.
improve spelling

  1. … 6 more files in changeset.
improve spelling

  1. … 11 more files in changeset.
minor cleanup and extended regression test - reduce returns before end of function - reduce variable scopes - don't use variable for different purposes

  1. … 1 more file in changeset.
* nsf.c, methods.test: Cont'd uplevel reform to sanitize the single-arg case (in light of recent changes to 8.7, TIP 515 and for the sake of XOTcl 1 compatibility): A single arg to uplevel won't be inspected for a level specifier anymore; added tests and TODOs

  1. … 1 more file in changeset.
* nx.tcl, properties.test: Add exists accessor to properties and variables; incl. tests and documentation

  1. … 7 more files in changeset.
* tests/*.test: Add 'package prefer latest' to remaining test files.

  1. … 32 more files in changeset.
WIP

  1. … 2 more files in changeset.
* nsf.c (NsfOUplevelMethod, NsfOUpvarMethod, NsfCallstackFindCallingContext): Reform of uplevel and upvar methods, based on the recent feedback by Zoran. First, uplevel and upvar methods, as well as [current callinglevel] now behave consistently (re frame skipping for mixin and filter transparency). If there is no innermost enclosing proc frame, the innermost non-proc (e.g., namespace) frame is selected (rather than a "#0" as default). Second, argument handling for both uplevel (i.e., level sniffing in multi-arg case) and upvar (e.g., made silent TCL_ERROR for invalid argument arities explicit) have been fixed. * Object.man, methods.test: Added documentation for both methods (Object.man) and tests.

  1. … 7 more files in changeset.
* nsf.c (NsfOUpvarMethod): Fix argument parsing, to reflect Tcl's upvar behaviour for different (invalid) argument arities. Added tests.

  1. … 1 more file in changeset.
* nsf.c, methods.test (NsfOUplevelMethod): Fix argument handling (level sniffing in the multi-arg case etc.), to match 1:1 the handling of Tcl's uplevel. Added tests.

  1. … 1 more file in changeset.
WIP; rewrite NsfCallStackFindCallingContext

  1. … 1 more file in changeset.
Extend up-reform to uplevel, introduce NsfCallstackFindCallingContext, added tests

  1. … 3 more files in changeset.
make test more robust ("file lstat" returns less data under windows)

add regression test for testing the behavior of :upvar from toplevel tclsh with and without filters

This test covers implicitly also the behavior of [current callinglevel].

improve spelling

  1. … 4 more files in changeset.
* nsf.c (NextSearchAndInvoke): Relax the pre-conditions, objv can actually be NULL (see test cases). Besides, the assertion was not reflected by a corresponding nonnull constraints on the NextSearchAndInvoke prototype.

  1. … 1 more file in changeset.
execution namespace reform: - add execution namespace to proc context instead of altering the namespace of the command - this fixes strange behavior of "info commands ::o::p", which might have returned "::p" - provide compatibility with Tcl 8.7a2 - extend regression test

  1. … 3 more files in changeset.
* nsf.c, nsfInt.h: Start housekeeping work on Tcl command/proc names vs. NSF method names to avoid conflicts between ensemle methods and e.g. whitespace-containing command names. Added helper macro NsfHasTclSpace and some first tests. To be continued.

  1. … 2 more files in changeset.
* methods.test: Add basic tests on composite names under the default unknown handler.

Prepare value=* reform in tests

  1. … 2 more files in changeset.
nx::Class unknown: rewritte unknown message to include '?...?'

  1. … 5 more files in changeset.
Tests: Adjust the test suite for the latest rewording of the nx::Class unknown message

  1. … 4 more files in changeset.
DispatchUnknownMethod(): Make sure that arcane method names make it into proper unknown error mesages (incl. names representing invalid Tcl lists); tests included; checked by valgrind

  1. … 2 more files in changeset.
Having a working version, test for leaks

  1. … 1 more file in changeset.
Adding some missing test on recently added introspection methods

  1. … 1 more file in changeset.
- nx: added options "-debug" and "-deprecated" to methods "method" and "obejct method", such one can use e.g. C public method -deprecated bar {} {return 1} - extended regression test

  1. … 2 more files in changeset.
- nx: added new introspection options /cls/ info method debug /cls/ info method deprecated /obj/ info object method debug /obj/ info object method deprecated - extended regression test

  1. … 3 more files in changeset.