scholarly journals Unit Testing in C++ with Compiler Instrumentation and Friends

2017 ◽  
Vol 23 (2) ◽  
pp. 659-686
Author(s):  
Gábor Márton ◽  
Zoltán Porkoláb

In C++, test code is often interwoven with the unit we want to test. During the test development process we often have to modify the public interface of a class to replace existing dependencies; e.g. a supplementary setter or constructor function is added for dependency injection. In many cases, extra template parameters are used for the same purpose. All existing solutions have serious detrimental effects on the code structure and sometimes on the run-time performance as well. In this paper, we overview existing dependency replacement techniques of C++ and we evaluate their advantages and disadvantages. We introduce our non-intrusive, compiler instrumentation based testing approach that does not have such disadvantages. All non-intrusive testing methods (including our new method) require access to an object’s internal state in order to setup a test. Thus, to complement our new solution, we also present different approaches to conveniently access private members in C++. To evaluate these techniques, we created a proof-of-concept implementation which is publicly available for further testing.

2019 ◽  
Vol 17 (4) ◽  
pp. 225-239 ◽  
Author(s):  
Lulu Zuo ◽  
Ke Peng ◽  
Yihong Hu ◽  
Qinggang Xu

AIDS is a globalized infectious disease. In 2014, UNAIDS launched a global project of “90-90-90” to end the HIV epidemic by 2030. The second and third 90 require 90% of HIV-1 infected individuals receiving antiretroviral therapy (ART) and durable virological suppression. However, wide use of ART will greatly increase the emergence and spreading of HIV drug resistance and current HIV drug resistance test (DRT) assays in China are seriously lagging behind, hindering to achieve virological suppression. Therefore, recommending an appropriate HIV DRT method is critical for HIV routine surveillance and prevention in China. In this review, we summarized the current existing HIV drug resistance genotypic testing methods around the world and discussed the advantages and disadvantages of these methods.


Sensors ◽  
2021 ◽  
Vol 21 (16) ◽  
pp. 5307
Author(s):  
Ricardo Borges dos Santos ◽  
Nunzio Marco Torrisi ◽  
Rodrigo Palucci Pantoni

Every consumer’s buying decision at the supermarket influences food brands to make first party claims of sustainability and socially responsible farming methods on their agro-product labels. Fine wines are often subject to counterfeit along the supply chain to the consumer. This paper presents a method for efficient unrestricted publicity to third party certification (TPC) of plant agricultural products, starting at harvest, using smart contracts and blockchain tokens. The method is capable of providing economic incentives to the actors along the supply chain. A proof-of-concept using a modified Ethereum IGR token set of smart contracts using the ERC-1155 standard NFTs was deployed on the Rinkeby test net and evaluated. The main findings include (a) allowing immediate access to TPC by the public for any desired authority by using token smart contracts. (b) Food safety can be enhanced through TPC visible to consumers through mobile application and blockchain technology, thus reducing counterfeiting and green washing. (c) The framework is structured and maintained because participants obtain economical incentives thus leveraging it´s practical usage. In summary, this implementation of TPC broadcasting through tokens can improve transparency and sustainable conscientious consumer behaviour, thus enabling a more trustworthy supply chain transparency.


Author(s):  
Julija Kazakeviciute ◽  
James Paul Rouse ◽  
Davide Focatiis ◽  
Christopher Hyde

Small specimen mechanical testing is an exciting and rapidly developing field in which fundamental deformation behaviours can be observed from experiments performed on comparatively small amounts of material. These methods are particularly useful when there is limited source material to facilitate a sufficient number of standard specimen tests, if any at all. Such situations include the development of new materials or when performing routine maintenance/inspection studies of in-service components, requiring that material conditions are updated with service exposure. The potentially more challenging loading conditions and complex stress states experienced by small specimens, in comparison with standard specimen geometries, has led to a tendency for these methods to be used in ranking studies rather than for fundamental material parameter determination. Classifying a specimen as ‘small’ can be subjective, and in the present work the focus is to review testing methods that utilise specimens with characteristic dimensions of less than 50 mm. By doing this, observations made here will be relevant to industrial service monitoring problems, wherein small samples of material are extracted and tested from operational components in such a way that structural integrity is not compromised. Whilst recently the majority of small specimen test techniques development have focused on the determination of creep behaviour/properties as well as sub-size tensile testing, attention is given here to small specimen testing methods for determining specific tensile, fatigue, fracture and crack growth properties. These areas are currently underrepresented in published reviews. The suitability of specimens and methods is discussed here, along with associated advantages and disadvantages.


2021 ◽  
Author(s):  
Zhuo Zhao ◽  
Rui Li ◽  
Yangmyung Ma ◽  
Iman Islam ◽  
Abdul M. Azam Rajper ◽  
...  

UNSTRUCTURED During COVID-19, the clinical and healthcare demands have been on the rapid rise. Major challenges to addressing the pandemic include a lack of testing kits and shortages of ventilators to treat severe cases of COVID-19, insufficient accessibility to personal protective equipment for both hospitals and the public. New technologies have been developed by scientists, researchers, and companies in response to these demands. In this paper, 90 news articles and scientific reports on COVID-19-related innovations during 2020-2021 were screened and shortlisted to form a pool of candidates yielding a total of 20 publications for review which were then categorized into three sections: personal protective equipment, testing methods, and medical treatments. Each study was analyzed for its engineering characteristics and potential social impact on the COVID-19 pandemic. Finally, the guidelines for future disease prevention, diagnosis and treatment were summarized and discussed.


2012 ◽  
Vol 211 ◽  
pp. S112-S113
Author(s):  
E. Andres ◽  
V.M. Sá-Rocha ◽  
E.L. Roggen ◽  
E. Corsini ◽  
S. Gibbs ◽  
...  

2019 ◽  
Author(s):  
Joseph B. Babigumira ◽  
Solomon J. Lubinga ◽  
Mindy M. Cheng ◽  
James K. Karichu ◽  
Louis P. Garrison

Abstract Background HIV viral load (VL) monitoring informs antiretroviral therapy failure and helps to guide regimen changes. Typically, VL monitoring is performed using dried blood spot (DBS) samples transported and tested in a centralized laboratory. Novel sample collection technologies based on dried plasma stored on a plasma separation card (PSC) have become available. The cost-effectiveness of these different testing approaches to monitor VL is uncertain, especially in resource-limited settings. The objective of this study is to evaluate the potential cost-effectiveness of HIV VL testing approaches with PSC samples compared to DBS samples in Malawi. Methods We developed a decision-tree model to evaluate the cost-effectiveness of two different sample collection and testing methods—DBS and PSC samples transported and tested at central laboratories. The analysis used data from the published literature and was performed from the Malawi Ministry of Health perspective. We estimated costs of sample collection, transportation, and testing. The primary clinical outcome was test accuracy (proportion of patients correctly classified with or without treatment failure). Sensitivity analysis was performed to assess the robustness of results. Results The estimated test accuracy for a DBS testing approach was 87.5% compared to 97.4% for an approach with PSC. The estimated total cost per patient of a DBS testing approach was $19.39 compared to $17.73 for a PSC approach. Based on this, a PSC-based testing approach “dominates” a DBS-based testing approach (i.e., lower cost and higher accuracy). Conclusion The base-case analysis shows that a testing approach using PSC sample is less costly and more accurate (correctly classifies more patients with or without treatment failure) than with a DBS approach. Our study suggests that a PSC testing approach is likely an optimal strategy for routine HIV VL monitoring in Malawi. However, given the limited data regarding sample viability, additional real-world data are needed to validate the results.


2021 ◽  
Vol 5 (2) ◽  
pp. 128
Author(s):  
Fitria Jalaluddin ◽  
Alfelia Nugky Permatasari

Covid-19 made several countries adopt lock-down policies as an effort to break the chain of spreading the virus. However, this policy greatly affects sectors related to the daily mobility of people, especially the tourism sector which has been most significantly affected by Covid-19. One of the provinces in Indonesia that has experienced a major loss in the tourism sector due to Covid-19 is the Yogyakarta Special Region (DIY). Therefore, the DIY government gradually continues to encourage the tourism sector to resume operations, one of which is by releasing new applications for tourists, namely "Jogja Pass" and "Visiting Jogja" to monitor visitors to tourism destinations in DIY. In this study the author will focus on studying the application "Visiting Jogja". The purpose of this research is to examine the advantages and disadvantages of the "Visiting Jogja" application from the user's point of view, and to find out whether the "Visiting Jogja" application can help restore the confidence of tourists to travel to Yogyakarta. This study uses qualitative research methods, with data collection techniques through direct interviews with 10 respondents as a sample who is determined randomly. The results show that the application "Visiting Jogja" can provide assurance for tourists, which helps generate confidence in users to visit more tourism attractions in Yogyakarta. However, the government's efforts in socializing and promoting the “Visiting Jogja” application to the public are still lacking.


2021 ◽  
Vol 235 ◽  
pp. 02076
Author(s):  
Yanrong Huang ◽  
Bin Huang ◽  
Min Chen

Crowdsourcing is an important form for enterprises to realize open innovation, which can gather the wisdom of the public and gather talents from various fields to participate in technological innovation and value creation. This paper systematically reviews the emergence and development of crowdsourcing in China, analyzes the causes and characteristics of the four stages of crowdsourcing development with the clue of major events in the development process of crowdsourcing; takes the operation process of crowdsourcing as the breakthrough point, discusses the bidirectional driving optimization path for the benign rolling development of crowdsourcing mode under the background of “mass entrepreneurship and innovation”; and prospects. Finally, the future development direction of crowdsourcing mode is pointed out.


Sign in / Sign up

Export Citation Format

Share Document