repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/enablers/package.scala | <gh_stars>1-10
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | common-test.js/src/main/scala/org/scalatest/LineNumberHelper.scala | <reponame>cquiroz/scalatest
package org.scalatest
private[scalatest] trait LineNumberHelper {
def thisLineNumber = {
val st = Thread.currentThread.getStackTrace
st.dropWhile(_.getFileName.startsWith("https://")).dropWhile(e => e.getFileName.endsWith("LineNumberHelper.scala") || e.getFileName.endsWith("Share... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/fixture/AsyncFlatSpecLikeSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest.js/src/main/scala/org/scalatest/tools/Framework.scala | package org.scalatest.tools
import org.scalatest.{Tracker, Reporter}
import org.scalatest.events.{ExceptionalEvent, Summary}
import sbt.testing.{Framework => BaseFramework, Event => SbtEvent, Status => SbtStatus, _}
import scala.collection.mutable.ListBuffer
import scala.compat.Platform
class Framework extends BaseFr... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/fixture/PropSpec.scala | <filename>scalatest/src/main/scala/org/scalatest/fixture/PropSpec.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/algebra/MonoidSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldBeWritableSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-macro/src/main/scala/org/scalactic/anyvals/PosZDouble.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/UncheckedEquality.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-macro/src/main/scala/org/scalactic/anyvals/CompileTimeAssertions.scala | <reponame>cquiroz/scalatest<gh_stars>1-10
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
cquiroz/scalatest | common-test/src/main/scala/org/scalatest/LineNumberHelper.scala | package org.scalatest
private[scalatest] trait LineNumberHelper {
def thisLineNumber = {
val st = Thread.currentThread.getStackTrace
if (!st(2).getMethodName.contains("thisLineNumber"))
st(2).getLineNumber
else
st(3).getLineNumber
}
} |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/anyvals/OddIntSpec.scala | <reponame>cquiroz/scalatest<filename>scalactic-test/src/test/scala/org/scalactic/anyvals/OddIntSpec.scala
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/events/TestLocationServices.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/junit/AssertionsForJUnit.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/CooperatingNumeric.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/EquaMapSpec.scala | /*
* Copyright 2001-2015 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/fixture/AsyncFunSpec.scala | <gh_stars>1-10
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/prop/Checkers.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/concurrent/TestThreadsStartingCounter.scala | <filename>scalatest/src/main/scala/org/scalatest/concurrent/TestThreadsStartingCounter.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/jmock/SuiteExpectations.scala | <reponame>cquiroz/scalatest<gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
cquiroz/scalatest | project/GenInspectors.scala | <gh_stars>1-10
/*
* Copyright 2001-2011 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/SlowpokeDetector.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/concurrent/SelectorInterruptor.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/ExampleFunSpec.scala | package test
import org.scalatest.FunSpec
class ExampleFunSpec extends FunSpec {
describe("A Set") {
describe("when empty") {
it("should have size 0") {
assert(Set.empty.size == 0)
}
it("should produce NoSuchElementException when head is invoked") {
intercept[NoSuchElementExc... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/tools/Framework.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/algebra/Monoid.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/words/IncludeWordSpec.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/prop/TableStyleSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/tools/ScalaTestFrameworkSuite.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldBeExplicitlySpec.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/Stopper.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/ArrayWrapper.scala | <filename>scalactic/src/main/scala/org/scalactic/ArrayWrapper.scala
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/tools/ProgressBarPanel.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/matchers/TypeMatcherHelper.scala | <filename>scalatest/src/main/scala/org/scalatest/matchers/TypeMatcherHelper.scala
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://w... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/FutureSugar.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/StatefulStatusSpec.scala | <filename>scalatest-test/src/test/scala/org/scalatest/StatefulStatusSpec.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/MapShouldBeDefinedAtSpec.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldBeAnyTypeCheckSpec.scala | <filename>scalatest-test/src/test/scala/org/scalatest/ShouldBeAnyTypeCheckSpec.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/Complex.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/OrderingEquality.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/StringLoneElementSpec.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/anyvals/PosZLongSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | project/GenInspectorsShorthands.scala | <reponame>cquiroz/scalatest<filename>project/GenInspectorsShorthands.scala
/*
* Copyright 2001-2011 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/laws/Laws.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/PropertyFunSuite.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldMatchPatternSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest.js/src/main/scala/org/scalatest/tools/ScalaTestSbtEvent.scala | <gh_stars>1-10
package org.scalatest.tools
import sbt.testing._
private[tools] case class ScalaTestSbtEvent(
fullyQualifiedName: String,
fingerprint: Fingerprint,
selector: Selector,
status: Status,
throwable: OptionalThrowable,
duration: Long) extends Event |
cquiroz/scalatest | project/GenTheyWord.scala |
import java.io.File
import java.io.BufferedWriter
import java.io.FileWriter
import scala.io.Source
object GenTheyWord {
def generateFile(srcFileDir: String, srcClassName: String, targetFileDir: String, targetClassName: String) {
val targetDir = new File(targetFileDir)
targetDir.mkdirs()
val writer = ... |
cquiroz/scalatest | project/GenMatchers.scala | <reponame>cquiroz/scalatest
import collection.mutable.ListBuffer
import io.Source
import java.io.{File, FileWriter, BufferedWriter}
/*
* Copyright 2001-2011 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/SortedEquaMapSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/DiagrammedAssertionsSpec.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/prop/NonGeneratedTableDrivenPropertyChecksSpec.scala | package org.scalatest
package prop
import java.lang.annotation.AnnotationFormatError
import java.nio.charset.CoderMalfunctionError
import javax.xml.parsers.FactoryConfigurationError
import javax.xml.transform.TransformerFactoryConfigurationError
import org.scalatest.FailureMessages._
import org.scalatest.SharedHelper... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldBeDefinedAtForAllSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-macro/src/main/scala/org/scalactic/anyvals/DigitChar.scala | <filename>scalactic-macro/src/main/scala/org/scalactic/anyvals/DigitChar.scala
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/tools/MemoryReporter.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest.js/src/main/scala/org/scalatest/tools/SummaryCounter.scala | package org.scalatest.tools
import org.scalatest.events.ExceptionalEvent
import scala.collection.mutable.ListBuffer
private[tools] class SummaryCounter {
// scala.js is thread-safe
var testsSucceededCount, testsFailedCount, testsIgnoredCount, testsPendingCount, testsCanceledCount, suitesCompletedCount, suitesAbor... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/SeveredStackTraces.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ParallelTestExecutionSuiteTimeoutExamples.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/HashingEquality.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/laws/WillEqual.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/LazyBagSpec.scala | /*
* Copyright 2001-2015 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/StrictEnabledEquality.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/algebra/AssociativeSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/matchers/MatchSucceeded.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/LazyBag.scala | /*
* Copyright 2001-2015 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic-macro/src/main/scala/org/scalactic/anyvals/Percent.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
cquiroz/scalatest | scalatest.js/src/main/scala/org/scalatest/tools/TaskRunner.scala | package org.scalatest.tools
import org.scalatest.events.{TestFailed,
ExceptionalEvent,
Event,
SuiteStarting,
TopOfClass,
SuiteCompleted,
SuiteAbo... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/fixture/ExamplePropSpec.scala | package test.fixture
import org.scalatest._
class ExamplePropSpec extends fixture.PropSpec {
type FixtureParam = String
def withFixture(test: OneArgTest): Outcome = {
test("hi")
}
property("an empty Set should have size 0") { f =>
assert(Set.empty[Int].size == 0)
}
} |
cquiroz/scalatest | scalatest.js/src/main/scala/org/scalatest/tools/SbtReporter.scala | package org.scalatest.tools
import sbt.testing.{Status => SbtStatus, _}
import org.scalatest.Reporter
private class SbtReporter(suiteId: String, fullyQualifiedName: String, fingerprint: Fingerprint, eventHandler: EventHandler, report: Reporter) extends Reporter {
import org.scalatest.events._
private def getTes... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ParallelTestExecutionSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/tools/MemoryReporterSuite.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/ShouldMessageSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/Accumulation.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/exceptions/ModifiableMessage.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/ExamplePropSpec.scala | <filename>scalatest-test.js/src/test/scala/test/ExamplePropSpec.scala
package test
import org.scalatest.PropSpec
class ExamplePropSpec extends PropSpec {
property("an empty Set should have size 0") {
assert(Set.empty[Int].size == 0)
}
} |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/fixture/AsyncFixtures.scala | <filename>scalatest/src/main/scala/org/scalatest/fixture/AsyncFixtures.scala<gh_stars>1-10
/*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/enablers/EvidenceThat.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/JSuite.scala | <filename>scalatest/src/main/scala/org/scalatest/JSuite.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... |
cquiroz/scalatest | scalactic/src/main/scala/org/scalactic/MapEqualityConstraints.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/StreamlinedXmlNormMethods.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/matchers/TypeMatcherMacro.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/matchers/BePropertyMatcherSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/matchers/MatchResult.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/FactSpec.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/EitherValues.scala | <filename>scalatest/src/main/scala/org/scalatest/EitherValues.scala<gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://w... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/ExampleMatcherSpec.scala | package test
import org.scalatest._
import Matchers._
class ExampleMatcherSpec extends FunSpec {
describe("Equal matcher") {
it("should do nothing when LHS is equal to RHS") {
val a = 1
val b = 1
a should equal (b)
}
}
} |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/NoElementsOfContainMatcherSpec.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/BeforeAndAfterAllProp.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/concurrent/AbstractPatienceConfiguration.scala | <reponame>cquiroz/scalatest
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/fixture/ExampleFlatSpec.scala | package test.fixture
import org.scalatest._
class ExampleFlatSpec extends fixture.FlatSpec {
type FixtureParam = String
def withFixture(test: OneArgTest): Outcome = {
test("hi")
}
"An empty Set" should "have size 0" in { f =>
assert(Set.empty.size == 0)
}
it should "produce NoSuchElementExcepti... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/SharedHelpers.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/fixture/ExampleFunSpec.scala | package test.fixture
import org.scalatest._
class ExampleFunSpec extends fixture.FunSpec {
type FixtureParam = String
def withFixture(test: OneArgTest): Outcome = {
test("hi")
}
describe("A Set") {
describe("when empty") {
it("should have size 0") { f =>
assert(Set.empty.size == 0)
... |
cquiroz/scalatest | scalactic-test/src/test/scala/org/scalactic/algebra/DistributiveSpec.scala | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test.js/src/test/scala/test/MasterTestSuite.scala | <filename>scalatest-test.js/src/test/scala/test/MasterTestSuite.scala
package test
import org.scalatest.{FunSuite, Suites}
class MasterTestSuite extends Suites(
new ASuite,
new BSuite,
new CSuite
)
protected[test] class ASuite extends FunSuite {
test("test A1") {
assert(true == true)
}
}
protected[tes... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/Notifier.scala | /*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/AssertionsMacro.scala | /*
* Copyright 2001-2012 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest-test/src/test/scala/org/scalatest/TheSameElementsAsContainMatcherSpec.scala | <gh_stars>1-10
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
cquiroz/scalatest | scalactic-macro/src/main/scala/org/scalactic/BooleanMacro.scala | /*
* Copyright 2001-2012 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cquiroz/scalatest | scalatest/src/main/scala/org/scalatest/DocSpecLike.scala | <filename>scalatest/src/main/scala/org/scalatest/DocSpecLike.scala
/*
* Copyright 2001-2013 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.