1.60 で Source-based code coverage が安定化した (stable で使えるようになった)。
どうやって使うのかといった話は リリースノート に書いてある通り。なんだけど、ちょっと面倒くさい。
簡単に使うには https://github.com/taiki-e/cargo-llvm-cov の力を借りる。
まずは、llvm-tools-preview
と cargo-llvm-cov
を入れておく:
1.60 で Source-based code coverage が安定化した (stable で使えるようになった)。
どうやって使うのかといった話は リリースノート に書いてある通り。なんだけど、ちょっと面倒くさい。
簡単に使うには https://github.com/taiki-e/cargo-llvm-cov の力を借りる。
まずは、llvm-tools-preview
と cargo-llvm-cov
を入れておく:
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
module.exports = require('../localfiles/LocalFilesField'); |
import org.apache.lucene.analysis.Analyzer; | |
import org.apache.lucene.analysis.TokenStream; | |
import org.apache.lucene.analysis.ja.JapaneseAnalyzer; | |
import org.apache.lucene.analysis.ja.JapaneseTokenizer; | |
import org.apache.lucene.analysis.ja.tokenattributes.PartOfSpeechAttribute; | |
import org.apache.lucene.analysis.ja.tokenattributes.ReadingAttribute; | |
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; | |
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute; | |
import org.apache.lucene.analysis.util.CharArraySet; |
var collectionNames = db.getCollectionNames(), stats = []; | |
collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |