Add @Target's to kotlin.test annotations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user