lambdista / config

@@ -17,4 +17,4 @@
Loading
17 17
18 18
trait OptionSyntax {
19 19
  implicit def optionSyntax[A](opt: Option[A]): OptionOps[A] = new OptionOps(opt)
20 -
}
20 +
}

@@ -0,0 +1,14 @@
Loading
1 +
package com.lambdista
2 +
3 +
/**
4 +
  *
5 +
  *
6 +
  * @author Alessandro Lacava (@lambdista) 
7 +
  * @since 2019-06-12
8 +
  */
9 +
package object util {
10 +
  def traverse[A, B](ms: List[Option[A]])(f: A => B): Option[List[B]] =
11 +
    if (ms.exists(_.isEmpty)) None else Some(ms.map(x => f(x.get)))
12 +
13 +
  def sequence[A](ms: List[Option[A]]): Option[List[A]] = traverse(ms)(identity)
14 +
}
0 15
imilarity index 99%
1 16
ename from util/src/main/scala/com/lambdista/util/syntax/std/option.scala
2 17
ename to core/src/main/scala/com/lambdista/util/syntax/std/option.scala
Files Coverage
core/src/main/scala/com/lambdista 80.12%
typesafe/src/main/scala/com/lambdista/config/typesafe.scala 81.81%
Project Totals (9 files) 80.41%
90.1
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
89.1
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
89.2
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
89.3
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
90.2
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
90.3
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
1
coverage:
2
  status:
3
    project:
4
      default:
5
        threshold: 5%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading