Git Product home page Git Product logo

microlibs-scala's Introduction

Microlibraries!

Build Status Latest Version

val VerMicrolibs = "2.x"

"com.github.japgolly.microlibs" %%% "adt-macros"   % VerMicrolibs
"com.github.japgolly.microlibs" %%% "cats-ext"     % VerMicrolibs
"com.github.japgolly.microlibs" %%% "compile-time" % VerMicrolibs
"com.github.japgolly.microlibs" %%% "disjunction"  % VerMicrolibs
"com.github.japgolly.microlibs" %%% "multimap"     % VerMicrolibs
"com.github.japgolly.microlibs" %%% "name-fn"      % VerMicrolibs
"com.github.japgolly.microlibs" %%% "nonempty"     % VerMicrolibs
"com.github.japgolly.microlibs" %%% "recursion"    % VerMicrolibs
"com.github.japgolly.microlibs" %%% "stdlib-ext"   % VerMicrolibs
"com.github.japgolly.microlibs" %%% "test-util"    % VerMicrolibs % Test
"com.github.japgolly.microlibs" %%% "types"        % VerMicrolibs
"com.github.japgolly.microlibs" %%% "utils"        % VerMicrolibs

microlibs-scala's People

Contributors

dependabot[bot] avatar japgolly avatar mikla avatar scala-steward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

microlibs-scala's Issues

Fix assertSeq - show all

if (actual.size != expect.size) { // TODO Fix assertSeq
  println("ACTUAL: ")
  actual.foreach(i => println("  - " + i))
  println("EXPECT: ")
  expect.foreach(i => println("  - " + i))
}

assertMultiline crash on empty

  java.util.MissingFormatWidthException: %-0s
    java.util.Formatter$FormatSpecifier.checkGeneral(Formatter.java:3108)
    java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2870)
    java.util.Formatter.parse(Formatter.java:2713)
    java.util.Formatter.format(Formatter.java:2655)
    java.util.Formatter.format(Formatter.java:2609)
    java.lang.String.format(String.java:2897)
    scala.collection.immutable.StringLike.format(StringLike.scala:354)
    scala.collection.immutable.StringLike.format$(StringLike.scala:353)
    scala.collection.immutable.StringOps.format(StringOps.scala:33)
    scala.Predef$.printf(Predef.scala:414)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.$anonfun$assertMultiline$6(TestUtil.scala:110)
    scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.$anonfun$assertMultiline$1(TestUtil.scala:104)
    scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
    scala.Console$.withErr(Console.scala:196)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.$anonfun$withAtomicOutput$1(TestUtil.scala:22)
    scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
    scala.Console$.withOut(Console.scala:167)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.withAtomicOutput(TestUtil.scala:21)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.withAtomicOutput$(TestUtil.scala:16)
    shipreq.base.test.BaseTestUtil$.withAtomicOutput(BaseTestUtil.scala:13)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.assertMultiline(TestUtil.scala:92)
    japgolly.microlibs.testutil.TestUtilWithoutUnivEq.assertMultiline$(TestUtil.scala:91)

[config] So hard to just exclude sources from reports

val exclude = List(SourceName.environment, SourceName.system)

val configReport = configReport0
  .withUnusedSettings(
    _.withColFilter(_ && ConfigReport.ColFilter.excludeSources(exclude: _*))
      .withRowFilter(_ && ConfigReport.RowFilter((_, m) => m.keys.exists(!exclude.contains(_)))))
      // .withRowFilter(_ && ConfigReport.RowFilter.excludeEmpty)) // TODO Fix microlibs

println(configReport.reportUsed)

// TODO This is a temporary hack - need a way to know if empty after filter-application
if (configReport.reportUnused.length > 23)
  println("Unused config:\n" + configReport.reportUnused)

static lookup -> either

Take k => e, return e / v.

Maybe also take ks => f, then (k, f) => e?
And then a combinator of k => String which sorts & mkStrings then runs through (ks => f)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.