Wiki

Ticket #68 (new enhancement)

Opened 16 years ago

Enable declarations to be marked as test support only

Reported by: Chuck Owned by:
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

Then when -include-tests:no, these declarations would be excluded from code generation. Of course, if non-excluded code references them, that should be an error.

class TestSupportAttribute
	has AttributeUsage(AttributeTargets.All, allowMultiple=false)
	inherits Attribute
	"""
	Declarations marked as `TestSupport` will be excluded when the compiler is passed -include-tests:no.
	"""
	pass

Cobra itself would benefit from this feature.

Note: See TracTickets for help on using tickets.