Class org.ajoberstar.grgit.operation.FetchOpSpec
|
100%
successful |
Tests
| Test | Duration | Result |
|---|---|---|
| fetch from non-existent remote fails | 0.515s | passed |
| fetch with prune true, removes refs deleted in the remote | 0.866s | passed |
| fetch with refspecs fetches those branches | 1.015s | passed |
| fetch with tag mode all fetches [reachable-tag, unreachable-tag] | 1.010s | passed |
| fetch with tag mode auto fetches [reachable-tag] | 0.980s | passed |
| fetch with tag mode none fetches [] | 0.992s | passed |
| fetch without other settings, brings down correct commits | 0.755s | passed |


| Number of Classes | Line Coverage | Mutation Coverage | Test Strength |
|---|---|---|---|
| 5 | 73% | 65% | 100% |
| Name | Line Coverage | Mutation Coverage | Test Strength |
|---|---|---|---|
| DefaultJavaMailConfigurer.java | 83% |
100% |
100% |
| JavaMailBuilder.java | 77% |
65% |
100% |
| JavaMailConsistencyChecker.java | 64% |
100% |
100% |
| OverrideJavaMailResolver.java | 69% |
69% |
100% |
| UsernamePasswordAuthenticatorBuilder.java | 56% |
25% |
100% |


Middleware are defined at the Schema level and are applied when the methods
init
(when a document is initialized with data from MongoDB), save
, and
remove
are called on a document instance.
There are two types of middleware, serial and parallel.
Serial middleware are defined like:
schema.pre('save', function (next) {
// ...
})
They're executed one after the other, when each middleware calls next
.
Parallel middleware offer more fine-grained flow control, and are defined like
schema.pre('remove', true, function (next, done) {
// ...
})
Parallel middleware can next()
immediately, but the final argument will be
called when all the parallel middleware have called done()
.
Middleware are useful for:
and many other things. They're specially useful for atomizing model logic and avoiding nested blocks of async code.
If any middleware calls next
or done
with an Error
instance, the flow is
interrupted, and the error is passed to the callback.
For example:
schema.pre('save', function (next) {
// something goes wrong
next(new Error('something went wrong'));
});
// later...
myModel.save(function (err) {
// err can come from a middleware
});


Porsche Panamera Spied Inside And Out With Discreet Updates
The facelift will bring changes only a hardcore Porsche fan will notice right away.
by Adrian PadeanuThe Panamera still feels quite fresh in our opinion, but the second generation of Porsche’s liftback was unveiled more than three years ago, so no wonder the folks from Stuttgart are preparing a mid-cycle refresh. In typical Porsche fashion, the cosmetic revisions will be kept down to a minimum, with this prototype only hiding the revised graphics of the headlights and taillights.
Upon closer inspection, we’re noticing a black piece of tape has been slapped onto the front bumper where the Panamera could get some styling cues derived from the latest-generation 911. Speaking of which, a spy shot of the interior reveals the steering wheel of what seems to be a Turbo S E-Hybrid prototype (although it’s missing the green brake calipers) has been borrowed from the 992.
Gallery: Porsche Panamera facelift new spy photos
The biggest news regarding the facelifted Panamera could be that rumored flagship version codenamed “Lion.” First reported by Auto Motor und Sport nearly a month ago, the possible cream of the crop in the model’s lineup is expected to have as much as 820 hp and feature a beefier version of the powertrain installed in the aforementioned Turbo S E-Hybrid.
As you might remember, Porsche has told Motor1.com that a hardcore Panamera was tested at the Nürburgring in order to potentially set a new record for cars with four doors, but an official attempt is not necessarily a priority. The company didn’t wish to comment on whether such a version will be commercially released. If it will hit the market, the range-topping Panamera will have to go up against the Mercedes-AMG GT 73 expected to see the light of day in 2020 with somewhere in the region of 800 electrified horses. Audi is also thinking about hybridizing the RS6 and RS7 to unlock more than the 591 hp currently available in the super wagon and the sleek Sportback, respectively.
The Panamera Is Getting A Nip And Tuck:
Meanwhile, the revised Panamera should be out next year and will likely be followed shortly by the more practical Sport Turismo wagon.
Source: CarPix