aboutsummaryrefslogtreecommitdiff
path: root/core/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata')
-rw-r--r--core/testdata/format/annotationClass.package.md11
-rw-r--r--core/testdata/format/arrayAverage.kt8
-rw-r--r--core/testdata/format/arrayAverage.md25
-rw-r--r--core/testdata/format/deprecated.class.html11
-rw-r--r--core/testdata/format/deprecated.package.html2
-rw-r--r--core/testdata/format/exceptionClass.kt1
-rw-r--r--core/testdata/format/exceptionClass.md14
-rw-r--r--core/testdata/format/exceptionClass.package.md11
-rw-r--r--core/testdata/format/inapplicableExtensionFunctions.kt11
-rw-r--r--core/testdata/format/inapplicableExtensionFunctions.md20
-rw-r--r--core/testdata/format/inheritedCompanionObjectProperties.kt18
-rw-r--r--core/testdata/format/inheritedCompanionObjectProperties.md38
-rw-r--r--core/testdata/format/jdkLinks.kt5
-rw-r--r--core/testdata/format/jdkLinks.md20
-rw-r--r--core/testdata/format/multipleTypeParameterConstraints.kt2
-rw-r--r--core/testdata/format/multipleTypeParameterConstraints.md8
-rw-r--r--core/testdata/format/overloads.html2
-rw-r--r--core/testdata/format/paramTag.md1
-rw-r--r--core/testdata/format/receiverParameterTypeBound.kt5
-rw-r--r--core/testdata/format/receiverParameterTypeBound.md20
-rw-r--r--core/testdata/format/shadowedExtensionFunctions.kt18
-rw-r--r--core/testdata/format/shadowedExtensionFunctions.md22
-rw-r--r--core/testdata/format/throwsTag.md1
23 files changed, 261 insertions, 13 deletions
diff --git a/core/testdata/format/annotationClass.package.md b/core/testdata/format/annotationClass.package.md
new file mode 100644
index 00000000..f7c8405d
--- /dev/null
+++ b/core/testdata/format/annotationClass.package.md
@@ -0,0 +1,11 @@
+[test](test/index)
+
+
+## Package <root>
+
+
+### Annotations
+
+
+| [fancy](test/fancy/index) | `annotation class fancy` |
+
diff --git a/core/testdata/format/arrayAverage.kt b/core/testdata/format/arrayAverage.kt
new file mode 100644
index 00000000..1f9e12db
--- /dev/null
+++ b/core/testdata/format/arrayAverage.kt
@@ -0,0 +1,8 @@
+class XArray<T>
+
+fun XArray<out Byte>.average(): Double = 0.0
+fun XArray<out Double>.average(): Double = 0.0
+fun XArray<out Float>.average(): Double = 0.0
+fun XArray<out Int>.average(): Double = 0.0
+fun XArray<out Long>.average(): Double = 0.0
+fun XArray<out Short>.average(): Double = 0.0
diff --git a/core/testdata/format/arrayAverage.md b/core/testdata/format/arrayAverage.md
new file mode 100644
index 00000000..9ffa3650
--- /dev/null
+++ b/core/testdata/format/arrayAverage.md
@@ -0,0 +1,25 @@
+[test](test/index) / [XArray](test/-x-array/index)
+
+
+# XArray
+
+`class XArray&lt;T&gt;`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-x-array/-init-) | `XArray()` |
+
+
+### Extension Functions
+
+
+| [average](test/average) | `fun [XArray](test/-x-array/index)&lt;out&nbsp;Byte&gt;.average(): Double`
+`fun [XArray](test/-x-array/index)&lt;out&nbsp;Double&gt;.average(): Double`
+`fun [XArray](test/-x-array/index)&lt;out&nbsp;Float&gt;.average(): Double`
+`fun [XArray](test/-x-array/index)&lt;out&nbsp;Int&gt;.average(): Double`
+`fun [XArray](test/-x-array/index)&lt;out&nbsp;Long&gt;.average(): Double`
+`fun [XArray](test/-x-array/index)&lt;out&nbsp;Short&gt;.average(): Double` |
+
diff --git a/core/testdata/format/deprecated.class.html b/core/testdata/format/deprecated.class.html
index 69da63a1..b9939cd8 100644
--- a/core/testdata/format/deprecated.class.html
+++ b/core/testdata/format/deprecated.class.html
@@ -26,16 +26,5 @@
<br/>
<br/>
<br/>
-<h3>Constructors</h3>
-<table>
-<tbody>
-<tr>
-<td>
-<a href="test/-c/-init-">&lt;init&gt;</a></td>
-<td>
-<code><span class="identifier">C</span><span class="symbol">(</span><span class="symbol">)</span></code></td>
-</tr>
-</tbody>
-</table>
</BODY>
</HTML>
diff --git a/core/testdata/format/deprecated.package.html b/core/testdata/format/deprecated.package.html
index dd80471c..7658b435 100644
--- a/core/testdata/format/deprecated.package.html
+++ b/core/testdata/format/deprecated.package.html
@@ -5,7 +5,7 @@
<BODY>
<a href="test/index">test</a><br/>
<br/>
-<h2>Package </h2>
+<h2>Package &lt;root&gt;</h2>
<h3>Types</h3>
<table>
<tbody>
diff --git a/core/testdata/format/exceptionClass.kt b/core/testdata/format/exceptionClass.kt
new file mode 100644
index 00000000..d005bd89
--- /dev/null
+++ b/core/testdata/format/exceptionClass.kt
@@ -0,0 +1 @@
+class MyException : Exception
diff --git a/core/testdata/format/exceptionClass.md b/core/testdata/format/exceptionClass.md
new file mode 100644
index 00000000..b3464d6f
--- /dev/null
+++ b/core/testdata/format/exceptionClass.md
@@ -0,0 +1,14 @@
+[test](test/index) / [MyException](test/-my-exception/index)
+
+
+# MyException
+
+`class MyException&nbsp;:&nbsp;[Exception](http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html)`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-my-exception/-init-) | `MyException()` |
+
diff --git a/core/testdata/format/exceptionClass.package.md b/core/testdata/format/exceptionClass.package.md
new file mode 100644
index 00000000..fa220fe7
--- /dev/null
+++ b/core/testdata/format/exceptionClass.package.md
@@ -0,0 +1,11 @@
+[test](test/index)
+
+
+## Package &lt;root&gt;
+
+
+### Exceptions
+
+
+| [MyException](test/-my-exception/index) | `class MyException&nbsp;:&nbsp;[Exception](http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html)` |
+
diff --git a/core/testdata/format/inapplicableExtensionFunctions.kt b/core/testdata/format/inapplicableExtensionFunctions.kt
new file mode 100644
index 00000000..d2c65b46
--- /dev/null
+++ b/core/testdata/format/inapplicableExtensionFunctions.kt
@@ -0,0 +1,11 @@
+open class Foo<T> {
+}
+
+class Bar : Foo<Char>() {
+}
+
+fun Foo<Int>.shazam() {
+}
+
+fun Bar.xyzzy() {
+}
diff --git a/core/testdata/format/inapplicableExtensionFunctions.md b/core/testdata/format/inapplicableExtensionFunctions.md
new file mode 100644
index 00000000..8460cf2f
--- /dev/null
+++ b/core/testdata/format/inapplicableExtensionFunctions.md
@@ -0,0 +1,20 @@
+[test](test/index) / [Bar](test/-bar/index)
+
+
+# Bar
+
+`class Bar&nbsp;:&nbsp;[Foo](test/-foo/index)&lt;Char&gt;`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-bar/-init-) | `Bar()` |
+
+
+### Extension Functions
+
+
+| [xyzzy](test/xyzzy) | `fun [Bar](test/-bar/index).xyzzy(): Unit` |
+
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.kt b/core/testdata/format/inheritedCompanionObjectProperties.kt
new file mode 100644
index 00000000..74a3749c
--- /dev/null
+++ b/core/testdata/format/inheritedCompanionObjectProperties.kt
@@ -0,0 +1,18 @@
+open class A {
+ fun foo() {
+ }
+}
+
+open class B {
+ fun bar() {
+ }
+}
+
+class C : A {
+ fun xyzzy() {
+ }
+
+ companion object : B () {
+ fun shazam()
+ }
+}
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.md b/core/testdata/format/inheritedCompanionObjectProperties.md
new file mode 100644
index 00000000..9ec24edb
--- /dev/null
+++ b/core/testdata/format/inheritedCompanionObjectProperties.md
@@ -0,0 +1,38 @@
+[test](test/index) / [C](test/-c/index)
+
+
+# C
+
+`class C&nbsp;:&nbsp;[A](test/-a/index)`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-c/-init-) | `C()` |
+
+
+### Functions
+
+
+| [xyzzy](test/-c/xyzzy) | `fun xyzzy(): Unit` |
+
+
+### Inherited Functions
+
+
+| [foo](test/-a/foo) | `fun foo(): Unit` |
+
+
+### Companion Object Functions
+
+
+| [shazam](test/-c/shazam) | `fun shazam(): Unit` |
+
+
+### Inherited Companion Object Functions
+
+
+| [bar](test/-b/bar) | `fun bar(): Unit` |
+
diff --git a/core/testdata/format/jdkLinks.kt b/core/testdata/format/jdkLinks.kt
new file mode 100644
index 00000000..d5d719b0
--- /dev/null
+++ b/core/testdata/format/jdkLinks.kt
@@ -0,0 +1,5 @@
+/**
+ * This is a [ClassLoader] and I can get its [ClassLoader.getResource]
+ */
+class C : ClassLoader {
+}
diff --git a/core/testdata/format/jdkLinks.md b/core/testdata/format/jdkLinks.md
new file mode 100644
index 00000000..4f0344b5
--- /dev/null
+++ b/core/testdata/format/jdkLinks.md
@@ -0,0 +1,20 @@
+[test](test/index) / [C](test/-c/index)
+
+
+# C
+
+`class C&nbsp;:&nbsp;[ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html)`
+
+This is a [ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String))
+
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-c/-init-) | `C()`
+This is a [ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String))
+
+ |
+
diff --git a/core/testdata/format/multipleTypeParameterConstraints.kt b/core/testdata/format/multipleTypeParameterConstraints.kt
new file mode 100644
index 00000000..8fd62e11
--- /dev/null
+++ b/core/testdata/format/multipleTypeParameterConstraints.kt
@@ -0,0 +1,2 @@
+fun f<T> where T: Appendable, T: CharSequence {
+}
diff --git a/core/testdata/format/multipleTypeParameterConstraints.md b/core/testdata/format/multipleTypeParameterConstraints.md
new file mode 100644
index 00000000..537b127a
--- /dev/null
+++ b/core/testdata/format/multipleTypeParameterConstraints.md
@@ -0,0 +1,8 @@
+[test](test/index) / [f](test/f)
+
+
+# f
+
+`fun &lt;T&gt; f(): Unit where T&nbsp;:&nbsp;[Appendable](http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html), T&nbsp;:&nbsp;CharSequence`
+
+
diff --git a/core/testdata/format/overloads.html b/core/testdata/format/overloads.html
index 752f3989..896d79a9 100644
--- a/core/testdata/format/overloads.html
+++ b/core/testdata/format/overloads.html
@@ -5,7 +5,7 @@
<BODY>
<a href="test/index">test</a><br/>
<br/>
-<h2>Package </h2>
+<h2>Package &lt;root&gt;</h2>
<h3>Functions</h3>
<table>
<tbody>
diff --git a/core/testdata/format/paramTag.md b/core/testdata/format/paramTag.md
index 882083fe..20d8faac 100644
--- a/core/testdata/format/paramTag.md
+++ b/core/testdata/format/paramTag.md
@@ -8,6 +8,7 @@
### Parameters
`x` - A string
+
`y` - A number with a really long description that spans multiple lines and goes
on and on and is very interesting to read
diff --git a/core/testdata/format/receiverParameterTypeBound.kt b/core/testdata/format/receiverParameterTypeBound.kt
new file mode 100644
index 00000000..2b5f6f17
--- /dev/null
+++ b/core/testdata/format/receiverParameterTypeBound.kt
@@ -0,0 +1,5 @@
+open class Foo {
+}
+
+fun <T : Foo> T.xyzzy() {
+}
diff --git a/core/testdata/format/receiverParameterTypeBound.md b/core/testdata/format/receiverParameterTypeBound.md
new file mode 100644
index 00000000..872158ac
--- /dev/null
+++ b/core/testdata/format/receiverParameterTypeBound.md
@@ -0,0 +1,20 @@
+[test](test/index) / [Foo](test/-foo/index)
+
+
+# Foo
+
+`open class Foo`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-foo/-init-) | `Foo()` |
+
+
+### Extension Functions
+
+
+| [xyzzy](test/xyzzy) | `fun &lt;T&nbsp;:&nbsp;[Foo](test/-foo/index)&gt; T.xyzzy(): Unit` |
+
diff --git a/core/testdata/format/shadowedExtensionFunctions.kt b/core/testdata/format/shadowedExtensionFunctions.kt
new file mode 100644
index 00000000..64df1ecb
--- /dev/null
+++ b/core/testdata/format/shadowedExtensionFunctions.kt
@@ -0,0 +1,18 @@
+open class Foo {
+}
+
+class Bar : Foo() {
+}
+
+fun Foo.xyzzy() {
+}
+
+fun Foo.shazam() {
+
+}
+
+fun Bar.xyzzy() {
+}
+
+fun Bar.shazam(i: Int) {
+}
diff --git a/core/testdata/format/shadowedExtensionFunctions.md b/core/testdata/format/shadowedExtensionFunctions.md
new file mode 100644
index 00000000..5218d299
--- /dev/null
+++ b/core/testdata/format/shadowedExtensionFunctions.md
@@ -0,0 +1,22 @@
+[test](test/index) / [Bar](test/-bar/index)
+
+
+# Bar
+
+`class Bar&nbsp;:&nbsp;[Foo](test/-foo/index)`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-bar/-init-) | `Bar()` |
+
+
+### Extension Functions
+
+
+| [shazam](test/shazam) | `fun [Bar](test/-bar/index).shazam(i:&nbsp;Int): Unit`
+`fun [Foo](test/-foo/index).shazam(): Unit` |
+| [xyzzy](test/xyzzy) | `fun [Bar](test/-bar/index).xyzzy(): Unit` |
+
diff --git a/core/testdata/format/throwsTag.md b/core/testdata/format/throwsTag.md
index d0a4e610..21225297 100644
--- a/core/testdata/format/throwsTag.md
+++ b/core/testdata/format/throwsTag.md
@@ -8,6 +8,7 @@
### Exceptions
`IllegalArgumentException` - on Mondays
+
`NullPointerException` - on Tuesdays