This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def reportFile = new File("target/site/jacoco/index.html") | |
| if (!reportFile.exists() || !reportFile.canRead()) { | |
| println "[JacocoPrinter] Skipped due to missing report file." | |
| return | |
| } | |
| reportFile.withReader('UTF-8') { reader -> | |
| def html = getParser().parseText(reader.readLine()) | |
| def totalRow = html.body.table.tfoot.tr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MongoClient = require('mongodb').MongoClient; | |
| const url = "mongodb://mongo1:30001,mongo2:30002,mongo3:30003?replicaSet=my-rs"; | |
| MongoClient.connect(url, { useNewUrlParser: true }) | |
| .then(client => { | |
| const db = client.db('test'); | |
| const collection = db.collection('engineers'); | |
| const changeStreamOptions = { | |
| fullDocument: 'updateLookup', | |
| resumeAfter: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MongoClient = require('mongodb').MongoClient; | |
| const url = "mongodb://mongo1:30001,mongo2:30002,mongo3:30003?replicaSet=my-rs"; | |
| MongoClient.connect(url, { useNewUrlParser: true }) | |
| .then(client => { | |
| const db = client.db('test'); | |
| const collection = db.collection('engineers'); | |
| const changeStreamOptions = { | |
| fullDocument: 'updateLookup' | |
| }; |