It can be difficult to see what the side-effects of globals are and just because they have line/conditional coverage in tests doesn't mean that they affect any test outcomes.
This file contains 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
From MsgDecHdlr: | |
{paramPresentFlags = 0x0724, fpPayloadCrcCheckMode = | |
0x0000 (FP_PAYLOAD_CRC_CHECK_ENABLE), fpEndianMode = 0x0000 | |
(FP_MSG_BIG_ENDIAN_BYTEORDER), macDPduSpareBitsRemoved = 0x0001 | |
(MACD_PDU_SPARE_BITS_REMOVED), eDchCapacityLimit = 0x0000, disableExtendedRange | |
= 0x0000 (DISABLE_EXTENDED_RANGE_OFF), dlhsPriQThruputFilterParam = 0x0a '\n', | |
nodeBTestModeConfig = 0x0000 (NODEB_TEST_MODE_DISABLED), pcpichAmplitude = | |
0x0000, | |
nodeBResourceAllocation = {paramPresentFlags = 0x0007, |
This file contains 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
{paramPresentFlags = 0x0524, fpPayloadCrcCheckMode = 0x0000 (FP_PAYLOAD_CRC_CHECK_ENABLE), fpEndianMode = 0x0000 (FP_MSG_BIG_ENDIAN_BYTEORDER), macDPduSpareBitsRemoved = 0x0001 (MACD_PDU_SPARE_BITS_REMOVED), eDchCapacityLimit = 0x0000, disableExtendedRange = 0x0000 (DISABLE_EXTENDED_RANGE_OFF), dlhsPriQThruputFilterParam = 0x0a '\n', nodeBTestModeConfig = 0x0000 (NODEB_TEST_MODE_DISABLED), pcpichAmplitude = 0x0000, nodeBResourceAllocation = {paramPresentFlags = 0x0007, cmnDemodPrachRsrcCount = 0x01, maxRachResourceCount = 0x01, prachOnlyRsrcCount = 0x01}, | |
unusedFieldModSetup2 = {unusedFieldModSetup2_0 = 0x00 '\0', unusedFieldModSetup2_1 = 0x00 '\0', unusedFieldModSetup2_2 = 0x03}, hsupaConfigParams = {paramPresentFlags = 0x0001, despreadResourceBudget = 0x0001, hsupaMaxNumCdmUsers = 0x00 '\0'}} | |
message.msgStartFlag = 0x4b3c2d1e (1262234910) | |
message.msgSize = 0xf (15) | |
message.transactionId = 0x3 (3) | |
message.msgId = 0x28 (40) | |
message.msgType = 0x0 (0) |
This file contains 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
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/ProcDecHdlrs/src/radiolinkReconfigCommitRequestProcDecHdlr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/ProcDecHdlrs/src/radiolinkReconfigPrepRequestProcDecHdlr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/ProcDecHdlrs/src/radiolinkSetupRequestProcDecHdlr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/ProcEncHdlrs/src/radiolinkReconfigReadyProcEncHdlr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/ProcEncHdlrs/src/radiolinkSetupResponseProcEncHdlr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/inc/radioLinkGVar.h,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfdd/rel8_200903/common/L1MsgHdlr/src/radioLinkAllocateRsrcMgr.c,v | |
RCS file: /export/home/cvsroot/systems/products/lib/umtsfd |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>Example double confirm</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#submit-button').click(function() { | |
var confirm1 = confirm('Are you sure?'); | |
if (confirm1 === true) { |
This file contains 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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains 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
get_info.execute.each do |row| | |
res_output = "#{res_output} #{place}: #{row[0]} (#{row[1]});" | |
place += 1 | |
end |
This file contains 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 show | |
@company = Company.find(params[:id]) | |
end |
This file contains 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
STDOUT.sync = true | |
require 'tdriver' | |
include TDriverVerify | |
puts "Connect SUT" | |
@sut = TDriver.connect_sut(:Id => 'sut_qt') | |
puts "Check dialogfixture" | |
MobyUtil::Parameter[:sut_qt][:fixtures][:dialog] = "dialogfixture" | |
puts "-------------------" |
This file contains 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
require 'benchmark' | |
n = 1000000 | |
b = "b string".freeze | |
Benchmark.bmbm do |x| | |
x.report("use interpola") { n.times do; a = 'a string'; "#{a} #{b}"; end} | |
x.report("concat single") { n.times do; a = 'a string'; a + b; end} | |
x.report("use << single") { n.times do; a = 'a string'; a << b; end} | |
end |