Add @Target's to kotlin.test annotations

This commit is contained in:
Anton Bannykh
2017-12-11 16:07:36 +03:00
parent 5680405531
commit f68d639c63
2 changed files with 10 additions and 2 deletions
@@ -19,19 +19,23 @@ package kotlin.test
/**
* Marks a function as a test.
*/
@Target(AnnotationTarget.FUNCTION)
public expect annotation class Test()
/**
* Marks a test or a suite as ignored.
*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public expect annotation class Ignore()
/**
* Marks a function to be invoked before each test.
*/
@Target(AnnotationTarget.FUNCTION)
public expect annotation class BeforeTest()
/**
* Marks a function to be invoked after each test.
*/
@Target(AnnotationTarget.FUNCTION)
public expect annotation class AfterTest()
@@ -19,19 +19,23 @@ package kotlin.test
/**
* Marks a function as a test.
*/
@Target(AnnotationTarget.FUNCTION)
public annotation class Test
/**
* Marks a test or a suite as ignored/pending.
* Marks a test or a suite as ignored.
*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public annotation class Ignore
/**
* Marks a function to be invoked before each test.
*/
@Target(AnnotationTarget.FUNCTION)
public annotation class BeforeTest
/**
* Marks a function to be invoked after each test.
*/
public annotation class AfterTest
@Target(AnnotationTarget.FUNCTION)
public annotation class AfterTest