|
| 1 | +/* |
| 2 | + * Copyright 2001-2013 Artima, Inc. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package org |
| 17 | + |
| 18 | +/** |
| 19 | + * ScalaTest's main traits, classes, and other members, including members supporting ScalaTest's DSL for the Scala interpreter. |
| 20 | + */ |
| 21 | +package object scalatest { |
| 22 | + |
| 23 | + // SKIP-SCALATESTJS,NATIVE-START |
| 24 | + private val defaultShell = ShellImpl() |
| 25 | + |
| 26 | + /** |
| 27 | + * Returns a copy of this <code>Shell</code> with <code>colorPassed</code> configuration parameter set to <code>true</code>. |
| 28 | + */ |
| 29 | + lazy val color: Shell = defaultShell.color |
| 30 | + |
| 31 | + /** |
| 32 | + * Returns a copy of this <code>Shell</code> with <code>durationsPassed</code> configuration parameter set to <code>true</code>. |
| 33 | + */ |
| 34 | + lazy val durations: Shell = defaultShell.durations |
| 35 | + |
| 36 | + /** |
| 37 | + * Returns a copy of this <code>Shell</code> with <code>shortStacksPassed</code> configuration parameter set to <code>true</code>. |
| 38 | + */ |
| 39 | + lazy val shortstacks: Shell = defaultShell.shortstacks |
| 40 | + |
| 41 | + /** |
| 42 | + * Returns a copy of this <code>Shell</code> with <code>fullStacksPassed</code> configuration parameter set to <code>true</code>. |
| 43 | + */ |
| 44 | + lazy val fullstacks: Shell = defaultShell.fullstacks |
| 45 | + |
| 46 | + /** |
| 47 | + * Returns a copy of this <code>Shell</code> with <code>statsPassed</code> configuration parameter set to <code>true</code>. |
| 48 | + */ |
| 49 | + lazy val stats: Shell = defaultShell.stats |
| 50 | + |
| 51 | + /** |
| 52 | + * Returns a copy of this <code>Shell</code> with <code>colorPassed</code> configuration parameter set to <code>false</code>. |
| 53 | + */ |
| 54 | + lazy val nocolor: Shell = defaultShell.nocolor |
| 55 | + |
| 56 | + /** |
| 57 | + * Returns a copy of this <code>Shell</code> with <code>durationsPassed</code> configuration parameter set to <code>false</code>. |
| 58 | + */ |
| 59 | + lazy val nodurations: Shell = defaultShell.nodurations |
| 60 | + |
| 61 | + /** |
| 62 | + * Returns a copy of this <code>Shell</code> with <code>shortStacksPassed</code> configuration parameter set to <code>false</code>. |
| 63 | + */ |
| 64 | + lazy val nostacks: Shell = defaultShell.nostacks |
| 65 | + |
| 66 | + /** |
| 67 | + * Returns a copy of this <code>Shell</code> with <code>statsPassed</code> configuration parameter set to <code>false</code>. |
| 68 | + */ |
| 69 | + lazy val nostats: Shell = defaultShell.nostats |
| 70 | + // SKIP-SCALATESTJS,NATIVE-END |
| 71 | + |
| 72 | + /** |
| 73 | + * The version number of ScalaTest. |
| 74 | + * |
| 75 | + * @return the ScalaTest version number. |
| 76 | + */ |
| 77 | + val ScalaTestVersion: String = ScalaTestVersions.ScalaTestVersion |
| 78 | + |
| 79 | + private[scalatest] type Expectation = Fact |
| 80 | + |
| 81 | + /** |
| 82 | + * Marker trait that serves as the result type of <code>assert</code>, <code>assume</code>, and <code>pending</code> methods of |
| 83 | + * trait <code>Assertions</code>, which return its only instance, the <code>Succeeded</code> singleton, or throw |
| 84 | + * an exception that indicates a failed, canceled, or pending test. |
| 85 | + */ |
| 86 | + type Assertion = compatible.Assertion |
| 87 | +} |
0 commit comments