Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= funit
home :: https://rubygems.org/gems/funit code :: https://github.com/kleb/nasarb/tree/master/funit bugs :: https://github.com/kleb/nasarb/issues rdoc :: http://www.rubydoc.info/gems/funit
== DESCRIPTION:
funit is a unit testing framework for Fortran.
Unit tests are written as Fortran fragments that use a small set of testing-specific keywords and functions. funit transforms these fragments into valid Fortran code, compiles, links, and runs them against the code under test.
funit is {opinionated software}[http://www.oreillynet.com/pub/a/network/2005/08/30/ruby-rails-david-heinemeier-hansson.html], which values convention over configuration. Specifically, funit requires,
== FEATURES/PROBLEMS:
== SYNOPSIS:
Suppose gas_physics.f90 has a routine that returns viscosity as a function of temperature, e.g.,
module gas_physics contains function viscosity(temperature) real :: viscosity, temperature viscosity = 2.0e-3 * temperature**1.5 end function end module
Tests of this module would be contained in gas_physics.fun, and might contain a test like,
test_suite gas_physics
test viscosity_varies_as_temperature assert_real_equal( 0.0, viscosity(0.0) ) assert_equal_within( 0.7071, viscosity(50.0), 1e-3 ) end test
end test_suite
This brief fragment is all you need. The framework provides the rest of the trappings to turn this into valid Fortran code.
You would run this unit test with the command,
funit gas_physics
which would transform your fragments contained in gas_physics.fun into valid Fortran code, create a test runner program, compile everything, and run the tests, viz,
expanding test suite: gas_physics... done. locating associated source files and sorting for compilation (cd .; g95 -c gas_physics_fun.f90) (cd .; g95 -c TestRunner.f90) g95 -o TestRunner gas_physics.o gas_physics_fun.o TestRunner.o
gas_physics test suite: Passed 2 of 2 possible asserts comprising 1 of 1 tests.
This and other examples come with the funit distribution in the examples directory. There is also an emacs mode in the utils directory. If you installed funit via Rubygems, these directories can be found in your Rubygems library directory, e.g., /usr/local/lib/ruby/gems.
== REQUIREMENTS:
== INSTALL:
== LICENSE:
funit is released under the NASA Open Source Agreement -- see License.txt[link:files/License_txt.html] for details.
== ORIGIN:
On October 4, 2001, Mike Hill (then of {Object Mentor}[http://www.objectmentor.com/], now of {Industrial Logic}[http://www.industriallogic.com]) visited {NASA Langley Research Center}[http://www.larc.nasa.gov] in Hampton, Virginia and gave a test-first design talk at the {Institute for Computer and Applied Sciences and Engineering (ICASE)}[http://www.icase.edu]. Copies of his slides are available at {icase.edu/series/MPP}[http://www.icase.edu/series/MPP/].
Mike spent the afternoon with Bil Kleb, Bill Wood, Karen Bibb, and Mike Park reasoning out how we might create a testing framework for Fortran 90 to use during FUN3D[http://fun3d.larc.nasa.gov] code development. By the end of the afternoon we had a working prototype based on the macro expansion techniques employed in Mike Hill's cpptestkit[http://sourceforge.net/projects/cpptestkit]. We quickly found C-preprocessor macros to be too restrictive and rewrote the framework in Ruby[http://www.ruby-lang.org].
== TODO:
FAQs
Unknown package
We found that funit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.