Frank Schreiner's avatar

Frank Schreiner

M0ses

Member of the group
Involved Projects and Packages

Sys::MemInfo return the total amount of free and used physical memory in bytes in totalmem and freemem variables. Total amount of free and user swap memory are alse returned in totalswap and freeswap variables. This module has been tested on Linux 3.13.0, UnixWare 7.1.2, AIX5, OpenBSD 3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64 5.1, Irix 6.5, Mac OS X 10.2 darwin and Windows XP. It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista.

Colorizes text using ANSI colors.

This plugin allows you to embed JSON strings in HTML. In the output, special characters such as '<' and '&' are escaped as '\uxxxx' to prevent XSS attacks. It also provides decoding function to keep compatibility with the Template::Plugin::JSON manpage.

Objects in this class provide access to terminfo database entires. This database provides information about a terminal, in three separate sets of capabilities. Flag capabilities indicate the presence of a particular ability, feature, or bug simply by their presence. Number capabilities give the size, count or other numeric detail of some feature of the terminal. String capabilities are usually control strings that the terminal will recognise, or send. Capabilities each have two names; a short name called the capname, and a longer name called the varname. This class provides two sets of methods, one that works on capnames, one that work on varnames. This module optionally uses unibilium to access the terminfo(5) database, if it is available at compile-time. If not, it will use and -lcurses.

Sometimes, when writing a test, you don't have to oportunity to do dependency injection of the type of transport used in a specific API. Sometimes that code willl unequivocally always use actual HTTP and the only control you have is over the host and port to which it will connect. This class offer a simple way to mock the service being called. It does that by binding to a random port on localhost and allowing you to inspect which port that was. Using a random port means that this can be used by tests running in parallel on the same host. The socket will be bound and listened on the main test process, such that the lifetime of the connection is defined by the lifetime of the test itself. Since the socket will be already bound and listened to, the two conntrol methods (start_mock_server and stop_mock_server) fork only for the accept call, which means that it is safe to call start and stop several times during the test in order to change the expectations of the mocked code. That allows you to easily configure the expectations of the mock server across each step of your test case. On the other hand, it also means that no state is shared between the code running in the mock server and the test code.

Test::Magpie is a test double framework heavily inspired by the Mockito framework for Java, and also the Python-Mockito project. In Mockito, you "spy" on objects for their behaviour, rather than being upfront about what should happen. I find this approach to be significantly more flexible and easier to work with than mocking systems like EasyMock, so I created a Perl implementation. * Mock objects Mock objects, represented by the Test::Magpie::Mock manpage objects, are objects that pretend to be everything you could ever want them to be. A mock object can have any method called on it, does every roles, and isa subclass of any superclass. This allows you to easily throw a mock object around it will be treated as though it was a real object. * Method stubbing Any method can be called on a mock object, and it will be logged as an invocation. By default, method calls return 'undef' in scalar context or an empty list in list context. Often, though, clients will be interested in the result of calling a method with some arguments. So you may specify how a method stub should respond when it is called. * Verify interactions After calling your concrete code (the code under test) you may want to check that the code did operate correctly on the mock. To do this, you can use verifications to make sure code was called, with correct parameters and the correct amount of times. * Argument matching Magpie gives you some helpful methods to validate arguments passed in to calls. You can check equality between arguments, or consume a general type of argument, or consume multiple arguments. See the Test::Magpie::ArgumentMatcher manpage for the juicy details.

This module changes the behavior of the builtin function ref(). If ref() is called on an object that has requested an overloaded ref, the object's '->ref' method will be called and its return value used instead.

URI::Query provides simple URI query string manipulation, allowing you to create and manipulate URI query strings from GET and POST requests in web applications. This is primarily useful for creating links where you wish to preserve some subset of the parameters to the current request, and potentially add or replace others. Given a query string this is doable with regexes, of course, but making sure you get the anchoring and escaping right is tedious and error-prone - this module is simpler.

Maintainer

The rolling Fedora Rawhide distribution. So expect some temporary breakages here, but please report to opensuse-buildservice mailing list issues which may need configuration changes.

This project was created for package minimal-container-image via attribute OBS:Maintained

This project was created for package kiwi-templates-JeOS via attribute OBS:Maintained

Maintainer Bugowner
Maintainer

This project was created for package gitlab-ce via attribute OBS:Maintained

Maintainer Bugowner
1313 contributions in the last year
Mon                                                                                                          
Tue                                                                                                        
Wed                                                                                                        
Thu                                                                                                        
Fri                                                                                                        
Sat                                                                                                        
Sun                                                                                                        
Contributions on 2024-04-14
70 commits in devel:kanku:images
openSUSE Build Service is sponsored by